首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在非spring-boot应用程序中公开来自spring-boot-actuator的缓存端点

在非spring-boot应用程序中公开来自spring-boot-actuator的缓存端点
EN

Stack Overflow用户
提问于 2020-01-31 03:42:44
回答 1查看 163关注 0票数 0

我正在使用非spring-boot应用程序,但我需要公开端点,它将返回应用程序中配置的缓存。我看到了spring post,但它是针对this -boot-actuator版本1.X的,我使用的是spring-boot-actuator版本2.1.3.RELEASE,因为缓存端点在此版本中可用。

EN

回答 1

Stack Overflow用户

发布于 2020-01-31 05:33:35

您是否尝试过将以下内容添加到application.yml文件中?

代码语言:javascript
复制
management:endpoints.web.exposure.include: ["caches", etc....`]
management.endpoint.caches.enabled:true
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59993399

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档