title: How to call a component's method from the main method?
body: <p>I m new to springboot</p>
  
  <p>I created a component :</p>
  
  <pre><code>@Component
  public class Article {
  
      File xml = new File(Constante.ARTICLE_XML);
      static File out = new File(Constante.ARTICLE_CSV + "out_article.csv");
  
      public synchronized void process() throws IOException, InterruptedException {
  
          Thread th = new Thread() {
              @Override
              public void run() {
                  try {
                      .....
                  }
              }
          };
          th.start();
      }
      .....
  }
  </code></pre>
  
  <p>Here is the main method :</p>
  
  <pre><code>@SpringBootApplication
  @EnableAutoConfiguration
  @ComponentScan(basePackages = "com.axian.oxalys.*")
  @PropertySource({"file:${app.home}/application.properties"})
  public class App {
  
      public static void main(String[] args) {
  
  
  
      }
  }
  </code></pre>
  
  <p>How can I call the component's method process() from the <code>main</code> method ?</p>