SpringBoot自定义Endpoint
pom依赖 pom.xml中加入如下依赖 1 2 3 4 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> 编写自定义Endpoint 1 2 3 4 5 6 7 8 9 10 11 @Configuration @Endpoint(id = "my-endpoint") public class MyEndpoint { @ReadOperation public Map<String, Object> endpoint() { Map<String, Object> map = new