Unable to start ServletWebServerApplicationContext due to missing ServletWeb解决办法
当在springboot启动项目的时候报这种错误:仔细一看,报错原因是因为缺少ServletWebServerFactory的bean。既然是跟Servlet有关,那么很可能是在web层面出现了问题。那么很可能是因为缺少一个spring-boot-starter-web依赖: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring
原创
2022-05-02 11:08:54 ·
35856 阅读 ·
3 评论