@RefreshScope and /refresh not w

2019-03-13  本文已影响0人  edgar_chan

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

上一篇下一篇

猜你喜欢

热点阅读