TLDR; You can't. The config server of Spring Cloud works sort of like this, in general, when dealing with an external location/native:
- application.properties is the set of settings that applies to all applications. - X.properties is the set of settings that affect application X where the application names itself as X. Given that you only have one application "CAS", the two mostly just deal with the same thing and there is no hierarchy. While there is no use case for overriding stuff, you can nonetheless use that behavior to break up the config in two halves. But, if you were to externalize the configuration server and if you had multiple applications all leveraging the same configuration server, then you could let it load up *.properties files from the external location (as it does now) and then each application would then use application.properties and its own X.properties. so 30 applications for instance, all sharing a single application.properties and yet overriding things inside it on a per X.properties basis. Makes sense? I realize that the docs are rather misleading; they tend to in this case generically describe the capabilities of the configuration server, and not so much the its specific utilization by CAS. Shall clarify. Also, I am almost sure there are ways where you could let a single application load up and use many config files and break things down ad infinitum. You'd need to play around with Spring Cloud to see how that can be possible. --Misagh -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Richard Frovarp Sent: Friday, December 2, 2016 9:35 AM To: CAS Community <[email protected]> Subject: [cas-user] CAS 5.0.0 and split configuration files https://apereo.github.io/cas/5.0.x/installation/Configuration-Management.html#native states that it is configured to load *.properties from an external location. I've tried to split my application.properties file up, but having multiple .properties files in that directory, and it isn't working. Putting credentials in a secrets.properties file results in the values not being read. I'm not a Spring developer, so reading through the Spring documentation hasn't helped. Am I missing something? Thanks, Richard -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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/87080575-7546-4b45-6b0f-14b694000771%40ndsu.edu. -- - CAS gitter chatroom: https://gitter.im/apereo/cas - CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html - CAS documentation website: https://apereo.github.io/cas - CAS project website: https://github.com/apereo/cas --- 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/017c01d24cbc%24cb1be010%246153a030%24%40unicon.net.
