How can I enable and exposure actuator endpoints in Spring boot 2.5.8 application if I don't have access to application.properties
file?
It's easy to do with application.properties
file, just configuring
management.endpoints.web.exposure.include=*
But if I don't have access to application.properties
, how can I do it in code?
CodePudding user response:
You can use command line to do the same.
mvn spring-boot:run -Dspring-boot.run.jvmArguments='Dmanagement.endpoints.web.exposure.include=*'
CodePudding user response:
You can add the properties as environment variables. Just need to switch casing and .
to _
MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE=*