title: I have 2 CommandLineRunner in same Spring boot
body: <p>I have 2 classes in spring boot that implement command line runner.  They basically look like this:</p>
  
  <pre><code> @SpringBootApplication
   @ComponentScan("com.xxxx")
   public class Application implements CommandLineRunner {
  </code></pre>
  
  <p>and the second looks like:</p>
  
  <pre><code> @SpringBootApplication
   @ComponentScan("com.xxxx")
   public class ApplicationWorklfow implements CommandLineRunner {
  </code></pre>
  
  <p>They compile fine. But when I try and run it with java -jar,  I get an error presumably as spring does not know which one to run.</p>
  
  <p>is there a command that I can use that will tell the jar which application I am trying to run?</p>