在Spring Boot中配置了actuator以后,我们可以正常访问/actuator跟/actuator/health,但是查看其它的路径时,会出现404错误。
原因是 /actuator/health 和 /actuator/info 是默认开放的,其他的需要自己去配置。在SpringBoot配置文件中加入如下代码即可。
management.endpoints.web.exposure.include=*
在Spring Boot中配置了actuator以后,我们可以正常访问/actuator跟/actuator/health,但是查看其它的路径时,会出现404错误。
原因是 /actuator/health 和 /actuator/info 是默认开放的,其他的需要自己去配置。在SpringBoot配置文件中加入如下代码即可。
management.endpoints.web.exposure.include=*