Viewing Current Spring (Boot) Properties

I am running a Spring Boot application as a .jar file that partly takes its properties from application.yml inside the jar, while other part of the properties is provided from another .yml application outside the jar. Some properties from the outside overwrite properties from the inside. To check if the properties have been rewritten correctly, I would like to see the currently active ones. Is it possible? Or is this the only solution to extend my application with property inference logic?

+3


source to share


1 answer


If you add Spring Boot Actuator to your dependencies, you can view a lot of settings and other information on the drive endpoints . You can view the properties at the endpoint /configprops

.



+3


source







All Articles