Closed cherliu closed 6 years ago
Is should be /actuator/env
http://cloud.spring.io/spring-cloud-static/Finchley.M9/single/spring-cloud.html#_endpoints
@gitlabbin thx,but /management/env still not working
@ryanjbaxter thx i read the doc too and try /actuator/env too,but still not working,have you tried this?i create a clean project only to test this config ,but still can not get my env,change to the 1.x boot and the matched cloud works。but due to other compatible problem ,i cannot use 1.x,help!
Check out and the exposing and enabling endpoints sections in the spring boot docs https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html#production-ready-endpoints-exposing-endpoints
If that still doesnt work provide a complete project and we will take a look
Thank you very much @ryanjbaxter , after I add endpoint config /actuator/env works! Here is part of my bootstrap config:
management:
endpoint:
env:
enabled: true (must)
endpoints:
web:
exposure:
include: env (must)
It looks like the doc should be updated ==>http://cloud.spring.io/spring-cloud-static/spring-cloud-config/2.0.0.M9/single/spring-cloud-config.html Thanks a lot !
Question: Description: "/env" not work Springboot version: 2.0.0.RELEASE SpringCloudConfig version: cloud config 2.0.0.M9 Java version: 1.8
Detail: 1.When My IntelliJ 14 Run Rest Client ==> Get http://localhost:8080/env I got 404 {"timestamp":"2018-03-29T09:49:56.148+0000","status":404,"error":"Not Found","message":"No message available","path":"/env"} , Though, My program had read the configfile successfully, I just can't get vars by "/env" 2.When I use springboot 1.5.9.Release and cloud version Dalston.RELEASE everything goes well 3.Here is my pom.xml