title: Spring-Boot: How do I reference application.properties in an @ImportResource
body: <p>I have an applicationContext.xml file in my Spring Boot application. In this file, it has a property placeholder - ${profile.services.url} - that's used to configure the "address" property of a &lt;jaxws:client> bean.</p>
  
  <p>In my Application.java class, I import this file.</p>
  
  <pre><code>@ImportResource("classpath:applicationContext.xml")
  public class Application {
  
      public static void main(String[] args) {
          SpringApplication.run(Application.class, args);
      }
  }
  </code></pre>
  
  <p>I have "profile.services.url" defined in application.properties. However, it's not recognized when building the bean in my XML file. I've tried adding the following, but it doesn't seem to work.</p>
  
  <pre><code>&lt;context:property-placeholder location="classpath:application.properties"/&gt;
  </code></pre>
  
  <p>Any suggestions on how to get @ImportResource to recognize Spring Boot's property support?</p>