springboot actuator 无法显示beans信息

As of spring boot version 2.0.1 using below property would work

management.endpoints.web.exposure.include=<comma separated endpoints you wish to expose>

You can use * wildcard to expose all actuator endpoints over the web if security isn't your concern.

Also endpoints seems to have moved from previous versions. For ex. if you wish to use beans, you would now have /actuator/beans endpoint.

Just to be sure look at startup logs for such endpoints.

More on endpoints can be found here

猜你喜欢

转载自www.cnblogs.com/voctrals/p/9151384.html