Spring之通过actuator查看env
所有自带监控点 https://docs.spring.io/spring-boot/docs/2.5.6/reference/html/actuator.html#actuator.endpoints
引入依赖
| 1 | <dependency> | 
在application.properties增加配置
| 1 | management.endpoints.web.exposure.include=* //打开所有的监控点 | 
按照上面的配置,我们可以在以下地址查看Spring程序的所有环境变量
| 1 | http://127.0.0.1:20000/actuator/env |