Backend Development 3 min read

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

<code>&lt;dependency&gt;
    &lt;groupId&gt;de.codecentric&lt;/groupId&gt;
    &lt;artifactId&gt;spring-boot-admin-starter-server&lt;/artifactId&gt;
    &lt;version&gt;2.2.1&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
    &lt;groupId&gt;de.codecentric&lt;/groupId&gt;
    &lt;artifactId&gt;spring-boot-admin-starter-client&lt;/artifactId&gt;
    &lt;version&gt;2.2.1&lt;/version&gt;
&lt;/dependency&gt;</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

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).

<code>Request failed with status code 406</code>

The main issue is an incorrect

Accept

header 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>
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

login 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.