照着教程弄发现Spring Boot 2.0 的Actuator只暴露了health和info端点,其它的一堆怎么也打不开
后来看文档找到了原因
https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#production-ready-endpoints
大概就是暴露怕不安全把,在SpringBoot的application.yml配置文件中加入这句话暴露所有端点,
management:
endpoints:
web:
expose: "*"
更多推荐
Spring Boot 2.0 的Actuator只暴露health和info
发布评论