搜索
您的当前位置:首页正文

springboot中各种容器切换

来源:筏尚旅游网

 

容器有:

      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

 

 

 

 

因篇幅问题不能全部显示,请点此查看更多更全内容

Top