springboot 1.X版本端点开启方法

1.X版本与2.X区别:2.X大部分路径要加“/actuator”

端点列表(注意最后一栏Sensitive为true的端点如果不设置为false将不可访问):

https://docs.spring.io/spring-boot/docs/1.5.3.RELEASE/reference/html/production-ready-endpoints.html#production-ready-endpoints

自定义设置:

endpoints.sensitive=true
endpoints.info.sensitive=false
上面两句的配置意思为将除了info以外的所有端点设置为敏感不可访问(
https://docs.spring.io/spring-boot/docs/1.5.3.RELEASE/reference/html/production-ready-endpoints.html#production-ready-customizing-endpoints

猜你喜欢

转载自www.cnblogs.com/goingforward/p/11124427.html
今日推荐