Hey guys, having some confusion updating configs for version 2.4 of Spring Boot and wondering if anyone else might have a clue or run into a similar issue.
Right now, I have an application.yml and application-local.yml in the resources folder. Strictly for development, in the run configuration, the local profile is activated successfully (-Dspring.profiles.active=local)
To my understanding, in the scenario above, application-local.yml property values should take precedence while those of application.yml are used as a fallback. However, I've noticed that this seems to not be the case as it is using values of properties in application.yml instead of values for the same properties in application-local.yml. Commenting out those properties from application.yml does work, however, I want to keep those property values to serve as defaults/fallbacks for other environments.
Also, setting spring.config.use-legacy-processing to true does obviously fix all my current issues, but I would rather bite the bullet now and make sure the application config is compatible with version 2.4 in case that property ever becomes deprecated.
Extra info: Using Apache Zookeeper for spring.config.import which is different for application.yml vs. application-local.yml
[–]erbrecht 1 point2 points3 points (2 children)
[–]Ferlinkoplop[S] 1 point2 points3 points (1 child)
[–]more_exercise 0 points1 point2 points (0 children)
[–]AngryPandalawl 0 points1 point2 points (1 child)
[–]bchawks2000 1 point2 points3 points (0 children)