出现了报错
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
本来一直以为是pom文件导入错误
原因:
注意,启动类的名字不可以叫做SpringbootApplication.class,如果在run方法中填写SpringbootApplication就会报这个错误
出现了报错
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
本来一直以为是pom文件导入错误
原因:
注意,启动类的名字不可以叫做SpringbootApplication.class,如果在run方法中填写SpringbootApplication就会报这个错误