You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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