<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=pmarschik" rel="nofollow">Patrick Marschik</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9127?redirect=false" rel="nofollow">SPR-9127</a></strong> and commented</p>
<p dir="auto">When you create an annotation based configuration class with a <code class="notranslate">@PropertySource</code> annotation that provides multiple .properties files and a name for that property source only one property source gets registered since all <code class="notranslate">ResourcePropertySource</code> s have the same name and thus get overwritten by the subsequent property sources.</p>
<p dir="auto">Example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Configuration
@PropertySource(name = &quot;someName&quot;, value = {&quot;classpath:a.properties&quot;, &quot;classpath:b.properties&quot;})
public class MyConfiguration {
}"><pre class="notranslate"><code class="notranslate">@Configuration
@PropertySource(name = "someName", value = {"classpath:a.properties", "classpath:b.properties"})
public class MyConfiguration {
}
</code></pre></div>
<p dir="auto">this will only register <code class="notranslate">b.properties</code> in the Environment since 2 <code class="notranslate">ResourcePropertySource</code>s with the name <code class="notranslate">someName</code> are created and added to the environment.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 GA</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118960" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14016" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14016/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14016">#14016</a> Resolving ${} system properties in <code class="notranslate">@PropertySource</code> annotation does not work anymore (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398117373" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13772" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13772/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13772">#13772</a> Fix regression in <code class="notranslate">@PropertySource</code> placeholder resolution</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398167209" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/16260" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/16260/hovercard" href="https://github.com/spring-projects/spring-framework/issues/16260">#16260</a> <code class="notranslate">@PropertySource</code> locations are being dropped in ConfigurationClassParser processPropertySource</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/4df2a14b13ac41d71f8034fa68e1b7e54e3f7a48/hovercard" href="https://github.com/spring-projects/spring-framework/commit/4df2a14b13ac41d71f8034fa68e1b7e54e3f7a48"><tt>4df2a14</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/e30d6104f367eb416c420ef801a8f152201443cd/hovercard" href="https://github.com/spring-projects/spring-framework/commit/e30d6104f367eb416c420ef801a8f152201443cd"><tt>e30d610</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/41ade68b50b39485b3cf02b9c6fb8eb74962146b/hovercard" href="https://github.com/spring-projects/spring-framework/commit/41ade68b50b39485b3cf02b9c6fb8eb74962146b"><tt>41ade68</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=tzolov" rel="nofollow">Christian Tzolov</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2186?redirect=false" rel="nofollow">SPR-2186</a></strong> and commented</p>
<p dir="auto">When used for a void method invocation the MethodInvokingFactoryBean returns a 'null'  value instead of  VoidType.<br>
(Test is attached)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 RC1</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/11723/MethodInvokingFactoryBean_VoidReturnValueTest.java" rel="nofollow">MethodInvokingFactoryBean_VoidReturnValueTest.java</a> (<em>1.06 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/11724/TestContext.xml" rel="nofollow">TestContext.xml</a> (<em>877 bytes</em>)</li>
</ul>