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.
Asked
Active
Viewed 466 times
2 Answers
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
-
Yes tried that but when I do http://localhost:8080/caches it gives 404. – user1298426 Jan 31 '20 at 10:57
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

user14257397
- 11
- 5