How to Add Maven Dependencies and Fix Service Log Level Issues in Spring Boot

This article explains how to declare Maven dependencies for Spring Boot Admin, adds Russian language support for internationalization, and resolves a bug where setting the log level for service instances fails due to an incorrect Accept header.

Java Architecture Diary
Java Architecture Diary
Java Architecture Diary
How to Add Maven Dependencies and Fix Service Log Level Issues in Spring Boot

Maven Dependency Coordinates

<dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-starter-server</artifactId>
    <version>2.2.1</version>
</dependency>
<dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-starter-client</artifactId>
    <version>2.2.1</version>
</dependency>

Internationalization: Adding Russian Language

New language support can be fully implemented by referencing the pull request shown in the image.

Fixing Service Instance Log Level Settings

Unified management of service instance log levels is supported; for example, setting the level for upms will affect all its running instances.

Note: This feature is supported from version 2.2.0, but version 2.2.0 contains a bug (see the screenshot).

Request failed with status code 406

The main issue is an incorrect Accept header when retrieving the service log level.

async fetchLoggers() {
    const responses = convertBody(
      (await this.axios.get(uri`actuator/loggers`, {headers: {'Accept': actuatorMimeTypes}})).data,
      (await this.axios.get(uri`actuator/loggers`, {headers: {'Accept': actuatorMimeTypes.join(',')}})).data
    );
}
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

BackendmavenSpring Bootinternationalizationlog level
Java Architecture Diary
Written by

Java Architecture Diary

Committed to sharing original, high‑quality technical articles; no fluff or promotional content.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.