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>

猜你喜欢

转载自www.cnblogs.com/QingXiaxu/p/12207706.html