springbootservletinitializer maven dependency

Solutions on MaxInterview for springbootservletinitializer maven dependency by the best coders in the world

showing results for - "springbootservletinitializer maven dependency"
Juan Sebastián
15 May 2016
1...
2import org.springframework.boot.SpringApplication;
3import org.springframework.boot.autoconfigure.SpringBootApplication;
4import org.springframework.boot.builder.SpringApplicationBuilder;
5// import org.springframework.boot.web.support.SpringBootServletInitializer;  // OBSOLETE
6import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
7
8@SpringBootApplication
9public class SpringBootWebApplication extends SpringBootServletInitializer {
10
11    @Override
12    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
13        return application.sources(SpringBootWebApplication.class);
14    }
15
16    public static void main(String[] args) throws Exception {
17        SpringApplication.run(SpringBootWebApplication.class, args);
18    }
19...
Asma
10 Jan 2019
1<parent>
2    <groupId>org.springframework.boot</groupId>
3    <artifactId>spring-boot-starter-parent</artifactId>
4    <version>2.1.1.RELEASE</version>
5</parent>