zartc (13) [Avatar] Offline
#1
I think that there are some important topics that are not covered by the chapter:
• The “default” section, when is it invoked by Spring and how we can take advantage of it (i.e. applying a default profile when none are set on the CLI or ENV).
• The inclusion of another section with spring.profiles.include
• What about profile-specific sections living inside a profile-specific yaml files, which file/section will be examined and in what order.
• The bootstrap.yml file, what is it used for, what configuration can/must we put in it.

What disappoint me the most is that you don’t give any advice on how to setup good configuration:
• Shall we structure our configuration by platform (application-dev, application-prod) and/or by domain (application-security, application-persistance)
• How to debug a non-functional configuration.
• How to reduce the reliance on configuration properties by developing our own auto-configuration classes.
• How to override configuration properties with configuration files external to the packaged application. Will it still work if the application id deployed in a Tomcat instance or in CloudFoundry.

With an ‘in action’ book I’m looking for advices and best practices from an experienced practitioner but as it is right now, the chapter five “working with configuration properties” doesn’t gives more information that the official documentation from Spring.

Com’on, you have been a Spring team insider and now you are at Pivotal, the worldwide Spring consulting specialists, you must know more than that.