“SpringBootSertLetLitializer Maven Dependência” Respostas de código

SpringBootSertLetLitializer Maven Dependência

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.1.1.RELEASE</version>
</parent>
Helpless Hedgehog

SpringBootSertLetLitializer Maven Dependência

...
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
// import org.springframework.boot.web.support.SpringBootServletInitializer;  // OBSOLETE
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
public class SpringBootWebApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(SpringBootWebApplication.class);
    }

    public static void main(String[] args) throws Exception {
        SpringApplication.run(SpringBootWebApplication.class, args);
    }
...
Helpless Hedgehog

Respostas semelhantes a “SpringBootSertLetLitializer Maven Dependência”

Perguntas semelhantes a “SpringBootSertLetLitializer Maven Dependência”

Mais respostas relacionadas para “SpringBootSertLetLitializer Maven Dependência” em Java

Procure respostas de código populares por idioma

Procurar outros idiomas de código