Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, one can identify if a property value has been overwritten in Spring Boot by following these steps:

  1. Enable debug logging in the application.properties file:
logging.level.org.springframework.boot.autoconfigure=DEBUG
  1. Start the application and look for the property values in the log output.

  2. If a value is overwritten, it will appear in the log output with the prefix "Overriding property".

  3. Additionally, one can use the Spring Boot Actuator endpoint /configprops to see all the properties and their sources. If a property has been overwritten, its source will be different from the default source.

http://localhost:8080/actuator/configprops