example of a module with 2 boot apps

This commit is contained in:
eugenp 2016-10-26 21:21:51 +03:00
parent 4906adb2ad
commit 11440cd673
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package org.baeldung.example.spring;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@EnableScheduling
@EnableAutoConfiguration
@ComponentScan("org.baeldung")
public class AnotherBootApp extends WebMvcConfigurerAdapter {
public static void main(final String[] args) {
SpringApplication.run(AnotherBootApp.class, args);
}
}