springboot2.X以后需配置后才可访问:
1)配置application.properties文件暴露所有监管点:
management.endpoints.web.base-path=/actuator
management.endpoints.web.base-path.exposure.include="*"
2)springboot2以上版本的springboot控制台打印的映射日志也有所不同
注意:
访问时访问路径最后需要加上/actuator/×××,即可访问
比如:http://localhost:8080/actuator