一,在main方法所在的类忘记添加@SpringBootApplication
二,缺少依赖,添加即可
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
最新推荐文章于 2024-05-19 18:19:19 发布