-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Closed as not planned
Closed as not planned
Copy link
Labels
status: invalidAn issue that we don't feel is validAn issue that we don't feel is valid
Description
When using Spring Boot Starter Parent 3.5.3 with Maven build profiles, the documented property expansion doesn't work without disabling profile validation.
According to the documentation, to expand properties using a Maven application.yml I should be able to use "@...@"
to reference my Maven property but on trying to build I get an error. Setting spring.profiles.validate=false
resolves the issue but shouldn't be necessary.
Error on start up:
Description:
Failed to bind properties under 'spring.profiles.active' to java.util.Set<java.lang.String>:
Property: spring.profiles.active
Value: "@spring.profiles.active@"
Origin: class path resource [application.yml] - 7:17
Reason: java.lang.IllegalStateException: Profile '@spring.profiles.active@' must start and end with a letter or digit
Link to example project with the issue: property-expansion
Metadata
Metadata
Assignees
Labels
status: invalidAn issue that we don't feel is validAn issue that we don't feel is valid