actuator /refresh is not being provided in SpringBoot 2.0.1

放肆的年华 提交于 2019-11-29 02:34:56

After a bit of research, I have found the cause why the endpoints are not shown in Spring Boot 2.0 is as per docs

By default, all endpoints except for shutdown are enabled

so, we need to enable them manually.

I have added management.endpoints.web.exposure.include=* in application.properties file and now all the endpoints are back.

Note: If you are using .yml make sure to use "*" not *

Exposure of endpoints on HTTP is now configurable by using properties

management.endpoints.web.exposure.include
management.endpoints.web.exposure.exclude

You can expose endpoints by there ID mentioned by Actuator.

# Include all endpoints 
management.endpoints.web.exposure.include=*
# Exclude specifics 
management.endpoints.web.exposure.exclude=env

Even after adding the below line, wont help sometimes management.endpoints.web.exposure.include=*

Try this:- Refresh works on OPTIONS method, not with POST method for few cases.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!