1

I am using non spring-boot app but I need to expose endpoint which will return caches configured in the application. 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.

user1298426
  • 3,467
  • 15
  • 50
  • 96

2 Answers2

0

Have you tried adding the following to the application.yml file?

management:endpoints.web.exposure.include: ["caches", etc....`]
management.endpoint.caches.enabled:true
Kevvvvyp
  • 1,704
  • 2
  • 18
  • 38
0

Did you set actuator endpoint?

management.endpoints.web.base-path // default /actuator

In that case, you should include endpoint to the path. example

http://localhost:8080/actuator/caches