1.loggin和jms使用需要配置logback和增加jolokia-core依赖:
To make the logging section work you need to make the /jolokia-endpoint accessible.
Include the jolokia-core.jar in your spring-boot-application:
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-core</artifactId>
</dependency>
Please note that the logging section currently only works with Logback.
To make the section work with Logback please activate the JMXConfigurator in your logback.xml:
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<jmxConfigurator/>
</configuration>
To make the logging section work you need to make the /jolokia-endpoint accessible.
Include the jolokia-core.jar in your spring-boot-application:
<dependency>
<groupId>org.jolokia</groupId>
<artifactId>jolokia-core</artifactId>
</dependency>
Please note that the logging section currently only works with Logback.
To make the section work with Logback please activate the JMXConfigurator in your logback.xml:
<configuration>
<include resource="org/springframework/boot/logging/logback/base.xml"/>
<jmxConfigurator/>
</configuration>

本文介绍如何在Spring Boot应用中配置Jolokia-Core依赖以启用Jolokia端点,并详细说明了如何通过激活Logback的JMX配置器来实现日志功能。此配置仅适用于Logback。





