springboot项目中,报这个错误,一般两个原因引起的。
1、bom.xml中没有引入starter-web

2、在main类中没有注解,那个类是springbootApplication

Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean
阅读 102
2022-02-08
springboot项目中,报这个错误,一般两个原因引起的。
1、bom.xml中没有引入starter-web

2、在main类中没有注解,那个类是springbootApplication

相关推荐
精彩评论(0)