官术网_书友最值得收藏!

Changing the default embedded web server

Embedded HTTP listeners can easily be customized as follows. By default, Spring Boot supports Tomcat, Jetty, and Undertow. In the following example, Tomcat is replaced with Undertow:

<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-undertow</artifactId>
</dependency>
主站蜘蛛池模板: 信宜市| 通道| 星子县| 将乐县| 元谋县| 通江县| 松阳县| 锦州市| 彰化市| 七台河市| 池州市| 常宁市| 临沭县| 美姑县| 五大连池市| 青浦区| 唐海县| 绍兴县| 兰州市| 双鸭山市| 万盛区| 青海省| 龙州县| 靖江市| 福贡县| 泸水县| 基隆市| 江口县| 樟树市| 钦州市| 顺平县| 牙克石市| 宁武县| 丹巴县| 神农架林区| 柳河县| 双牌县| 绥德县| 两当县| 旅游| 文山县|