Spring Boot启用Jetty

排除 spring-boot-starter-web 中默认的 spring-boot-starter-tomcat 依赖,添加 spring-boot-starter-jetty 依赖。

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    <exclusions>
        <exclusion>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
        </exclusion>
    </exclusions>
</dependency>

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-jetty</artifactId>
</dependency>

posted on 2020-01-19 09:49  QingXiaxu  阅读(667)  评论(0编辑  收藏  举报

导航