I clone the
cas-management-overlay project and want to modify some configuration like disable ssl settings. After read the docs on
boot-features-external-config-profile-specific-properties , I created a file named
application.default.properties based on
application.properties, and changed some settings and then run mvn clean package to repackage the war file. Finally, I run the cas-management project via
java -jar target/cas-management.war --spring.profiles.active=default or
java -Dspring.profiles.active=default -jar target/cas-management.war, but it didn't work as expected. The settings in
application.default.properties was not applied. However I could see the console log which shown that it was already using the default profile.