我正在使用非spring-boot应用程序,但我需要公开端点,它将返回应用程序中配置的缓存。我看到了spring post,但它是针对this -boot-actuator版本1.X的,我使用的是spring-boot-actuator版本2.1.3.RELEASE,因为缓存端点在此版本中可用。
发布于 2020-01-31 05:33:35
您是否尝试过将以下内容添加到application.yml文件中?
management:endpoints.web.exposure.include: ["caches", etc....`]
management.endpoint.caches.enabled:truehttps://stackoverflow.com/questions/59993399
复制相似问题