When the post after spring cloud2.0 version access / actuator / health 404 problem

When using spring cloud2.0.3 distribution center using git, normal start.

Client access to the configuration file on git no problem, the same can get to values.

The client integrated actuator health check mechanisms, access / actuator / info or / actuator / health no problem,

But when you want to test git configuration file changes, refresh the big question has been 404! (/ Actuator / refresh) 

spring boot before 2.0 are directly accessible, but later changed the 2.0

Before you modify the boot log:

After modifying the startup log:

When you see the start node log for refresh time refresh the interface description can be visited!

management.endpoints.web.exposure.include exposed actuator configured access point,

The default value and health info, this time calling / refresh will return a 404 error

Update the configuration of the center of the pit configuration, before calling 2.0 / configuration refresh update method is no longer applicable.


Current methods are as follows:


management.endpoints.web.exposure.include=refresh,health,info


The access point explicitly refresh is exposed, and then it can POST call / actuator / refresh arranged to update
 

Guess you like

Origin blog.csdn.net/caidingnu/article/details/90705635