4 ms·
This is not an endorsement, but Spring Boot has this built in (but not enabled by default): https://docs.spring.io/spring-boot/docs/current/reference/html/actu
by twic 3y ago
This is not an endorsement, but Spring Boot has this built in (but not enabled by default):
https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints https://docs.spring.io/spring-boot/docs/current/reference/ht...
I have been leaning towards a different approach. Rather than reading multiple config sources at runtime, read them at build time, and emit a single config file with everything fully resolved. Put that on the filesystem, and have the app read it. You have an easy canonical reference for the configuration, with no need to expose anything. The lifecycle of the config doesn't have to match that off the app binary, so it could (and probably should) have a separate build and release process.