问题:Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

问题:Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

初次使用IDEA自带的Tomcat时,在maven中添加坐标,应修改scope的值为compile

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
            <scope>provided</scope>
</dependency>

应修改为:

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
            <scope>compile</scope>
</dependency>

问题:Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.问题:Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean. 今页一点 发布了11 篇原创文章 · 获赞 6 · 访问量 3万+ 私信 关注
上一篇:Android Butterknife简单使用方法,解决添加Butterknife8.8.1依赖后出错的问题,Unable to find method 'com.android.build


下一篇:Java中Scanner类的简单用法