Question Details

No question body available.

Tags

java spring-boot hibernate jpa spring-profiles

Answers (1)

May 29, 2026 Score: 0 Rep: 474 Quality: Low Completeness: 20%

When you have multiple properties files, Spring Boot first loads the default 'application.properties', then applies the active profile's properties on top of it, overriding any conflicting values.

For example, if the mongo profile is active, the values from 'application.properties' are loaded first, followed by the values from 'application-mongo.properties', which override any matching keys.

Based on this, any JPA and Hibernate values defined in 'application.properties' will apply across all profiles, unless you explicitly override them in a profile-specific properties file.