Spring Boot: external messages.properties are being added but not used
<p>I have two <code>messages.properties</code> files. One is located inside <code>resources</code> and another one is outside my .jar file in a directory called <code>etc</code>.</p>

<p>This is my PropertiesConfiguration class:</p>

<pre><code>@Configuration
public class PropertiesConfiguration {

    @Bean
    public PropertyPlaceholderConfigurer properties() {
        final PropertyPlaceholderConfigurer ppc = new PropertyPlaceholderConfigurer();
        ppc.setIgnoreResourceNotFound(true);

        final List&lt;Resource&gt; resourceLst = new ArrayList&lt;Resource&gt;();

        resourceLst.add(new FileSystemResource("etc/application.properties"));
        resourceLst.add(new FileSystemResource("etc/messages.properties"));
        resourceLst.add(new FileSystemResource("etc/messages_et.properties"));

        ppc.setLocations(resourceLst.toArray(new Resource[]{}));

        return ppc;
    }
}
</code></pre>

<p>In the logs I see this: </p>

<pre><code>11:18:43.764  INFO [main] PropertyPlaceholderConfigurer              - Loading properties file from file [C:\Users\deniss\IdeaProjects\repgen\etc\application.properties]
11:18:43.764  WARN [main] PropertyPlaceholderConfigurer              - Could not load properties from file [C:\Users\deniss\IdeaProjects\repgen\etc\application.properties]: etc\application.properties (The system cannot find the file specified)
11:18:43.764  INFO [main] PropertyPlaceholderConfigurer              - Loading properties file from file [C:\Users\deniss\IdeaProjects\repgen\etc\messages.properties]
11:18:43.764  INFO [main] PropertyPlaceholderConfigurer              - Loading properties file from file [C:\Users\deniss\IdeaProjects\repgen\etc\messages_et.properties]
</code></pre>

<p>As I understand my <code>messages.properties</code> from <code>etc</code> is loaded. Although when the application is working, the values from it are not used. They are coming from default <code>messages.properties</code> inside my <code>resources</code> project folder. Am I doing something wrong?</p>