Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Default resolved property value is not working properly [SPR-10619] #15247
When using property files configuration like this:
and setting property value to the spring component:
I got invalid property resolved.
My case is:
Spring is resolving property to value false. It is using default setting if the first location of property files does not contains it.
Affects: 3.2 GA
Referenced from: commits d7ec20a
Phil Webb commented
I have not been able to replicate this issue either with a unit test  or a repro project .
Could you possibly take a look at modifying the repro project to see if you can make it fail for me?
Andrzej Wisłowski commented
I have debugged this case once again and I have found that I have a problem because I am using a few PropertySourcesPlaceholderConfigurer objects (each for the specific domain)
When I started using default value using : notation, the first one if does not find property in each files subset it is inserting default value in it.
When having many PropertySourcesPlaceholderConfigurert hen the last PropertySourcesPlaceholderConfigurer should set default value.