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

  • Spring Microservices
  • Rajesh RV
  • 39字
  • 2021-07-02 16:28:31

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>
主站蜘蛛池模板: 万年县| 克山县| 金溪县| 南涧| 大余县| 特克斯县| 淮北市| 昌都县| 舞阳县| 安乡县| 林芝县| 且末县| 澄城县| 西宁市| 黄平县| 原平市| 左贡县| 祥云县| 拉孜县| 维西| 云霄县| 施甸县| 桐乡市| 布拖县| 弥勒县| 韩城市| 加查县| 盐亭县| 麟游县| 白朗县| 松江区| 察哈| 白银市| 东乡族自治县| 华宁县| 贵州省| 安达市| 尉氏县| 满洲里市| 昌宁县| 开远市|