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.
Maven Dependency Coordinates
<code><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></code>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
upmswill 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).
<code>Request failed with status code 406</code>The main issue is an incorrect
Acceptheader when retrieving the service log level.
<code>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
);
}</code>Java Architecture Diary
Committed to sharing original, high‑quality technical articles; no fluff or promotional content.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.