[英]Expose cache endpoint from spring-boot-actuator in not a non spring-boot app
I am using non spring-boot app but I need to expose endpoint which will return caches configured in the application.我正在使用非 spring-boot 应用程序,但我需要公开端点,该端点将返回应用程序中配置的缓存。 I saw this post but it is for spring-boot-actuator version 1.X and I am using spring-boot-actuator version 2.1.3.RELEASE as the cache endpoint is available in this version.
我看到了这篇文章,但它适用于 spring-boot-actuator 版本 1.X,我使用的是 spring-boot-actuator 版本 2.1.3.RELEASE,因为缓存端点在此版本中可用。
Have you tried adding the following to the application.yml file?您是否尝试将以下内容添加到 application.yml 文件中?
management:endpoints.web.exposure.include: ["caches", etc....`]
management.endpoint.caches.enabled:true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.