@RefreshScope and /refresh not working

Q:
I tried POSTing to localhost:8080/refresh but getting a 404 Error response.
A:
It worked for me after adding the property "management.endpoints.web.exposure.include=*" in bootstrap.properties and changing the url to /actuator/refresh for spring version above 2.0.0 For spring version 1.0.5 url is /refresh

你可能感兴趣的:(@RefreshScope and /refresh not working)