在pom中添加依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
然后发现只有/health可以调用,其他信息都不可见。
在yml中加入,可以看一切信息了。
management: security: enabled: false
在pom中添加依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency>
然后发现只有/health可以调用,其他信息都不可见。
在yml中加入,可以看一切信息了。
management: security: enabled: false