Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean

慎壹

关注

阅读 100

2022-02-08

springboot项目中,报这个错误,一般两个原因引起的。

1、bom.xml中没有引入starter-web

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

 

精彩评论(0)

0 0 举报