If I modified the configurations in *application.properties* directly, it 
worked as expected

在 2018年4月9日星期一 UTC+8下午2:06:33,Donghua Liu写道:
>
> hi,
>
> I clone the cas-management-overlay 
> <https://github.com/apereo/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 
> <https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html#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.
>
>
> <https://lh3.googleusercontent.com/-7ngKeo56vwI/WssC2VcEQgI/AAAAAAAAA9I/6MX6yl9ecn4fhjJf0S4D8oTHXKXHpCmAgCLcBGAs/s1600/%25E5%25BE%25AE%25E4%25BF%25A1%25E6%2588%25AA%25E5%259B%25BE_20180409140542.png>
>
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/365ff4f1-6b32-41d8-8d2d-9f095e962ada%40apereo.org.

Reply via email to