Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean

来自ling
跳转至: 导航搜索

https://blog.csdn.net/qq_29302609/article/details/86414359

添加

<!--web 模块-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>
        <!--undertow容器-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-undertow</artifactId>
        </dependency>