springboot中各种容器切换

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_41650354/article/details/85951449

容器有:

      Tomcat、Jetty、Undertow、(各有特色,tomcat是springboot项目中默认自带的配置)

要想切换其他容器,先排除tomcat容器

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
//进入到pmo.xml视图中排除掉tomcat就会自动生成下面的排除语句
        <exclusions>
            <exclusion>
                <artifactId>spring-boot-starter-tomcat</artifactId>
                <groupId>org.springframework.boot</groupId>
            </exclusion>
        </exclusions>
    </dependency>

引入jerry

或者引入undertow

猜你喜欢

转载自blog.csdn.net/qq_41650354/article/details/85951449
今日推荐