James Bond
James Bond

Reputation: 21

Switch tomcat to Undertow

I want to switch tomcat to undertow ,and my pom.xml as follow :

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-start-tomcat</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-undertow</artifactId>
            <version>2.2.2.RELEASE</version>
        </dependency>

But, run the app

    Starting Servlet engine: [Apache Tomcat/9.0.29]
    ...
    Tomcat started on port(s): 8899 (http) with context path ''

What am I doing wrong?

Thanks :)

Upvotes: 1

Views: 466

Answers (1)

Andy Wilkinson
Andy Wilkinson

Reputation: 116261

There’s a small typo in your exclusion. You have spring-boot-start-tomcat. It should be spring-boot-starter-tomcat.

Upvotes: 3

Related Questions