title: Where do I put my XML beans in a Spring Boot application?
body: <p>I'm getting back into Spring (currently v4). It's all wonderful now with <code>@SpringBootApplication</code> and the other annotations but all the documentation seems to forget to mention how I define other beans in XML!</p>
  
  <p>For example I'd like to create an "SFTP Session Factory" as defined at:
     <a href="http://docs.spring.io/spring-integration/reference/html/sftp.html">http://docs.spring.io/spring-integration/reference/html/sftp.html</a></p>
  
  <p>There is a nice bit of XML to define the bean but where on earth do I put it and how do I link it in? Previously I did a:</p>
  
  <pre><code>ApplicationContext context = new ClassPathXmlApplicationContext(
                  "classpath:applicationContext.xml");
  </code></pre>
  
  <p>to specify the file name and location but now that I'm trying to use:</p>
  
  <pre><code>ApplicationContext ctx = SpringApplication.run(Application.class);
  </code></pre>
  
  <p>Where do I put the XML file? Is there a magic spring name to call it?</p>