title: SpringApplication.run main method
body: <p>I created a project in Eclipse using the Spring Starter project template.</p>
  
  <p>It automatically created an Application class file, and that path matches the path in the POM.xml file, so all is well. Here is the Application class:</p>
  
  <pre><code>@Configuration
  @ComponentScan
  @EnableAutoConfiguration
  public class Application {
  
      public static void main(String[] args) {
          //SpringApplication.run(ReconTool.class, args);  
          ReconTool.main(args);
      }
  }
  </code></pre>
  
  <p>This is a command line app that I am building and in order to get it to run I had to comment out the SpringApplication.run line and just add the main method from my other class to run.
  Other than this quick jerry-rig, I can build it using Maven and it runs as a Spring application, sort of.</p>
  
  <p>I'd rather, however, not have to comment out that line, and use the full Spring framework. How can I do this?</p>