Skip to content

Commit 11440cd

Browse files
author
eugenp
committed
example of a module with 2 boot apps
1 parent 4906adb commit 11440cd

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package org.baeldung.example.spring;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
5+
import org.springframework.context.annotation.ComponentScan;
6+
import org.springframework.scheduling.annotation.EnableScheduling;
7+
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
8+
9+
@EnableScheduling
10+
@EnableAutoConfiguration
11+
@ComponentScan("org.baeldung")
12+
public class AnotherBootApp extends WebMvcConfigurerAdapter {
13+
14+
public static void main(final String[] args) {
15+
SpringApplication.run(AnotherBootApp.class, args);
16+
}
17+
}

0 commit comments

Comments
 (0)