document.write("");

maven 项目 换高版本IDEA运行报错:Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

maven 项目,之前跑的好好的,换了个高版本的IDEA就无法运行了,报错

 Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

 

网上找了很多方法,清缓存重启,什么乱七八糟的都试了,没有用

后来的解决办法,是从git history中,找到旧版的pom.xml,重启运行,就可以了

 

没找到原因,可能是开发的过程中,修改pom.xml导致其兼容性降低了?!

 

posted @ 2022-04-14 14:56  人间春风意  阅读(290)  评论(0)    收藏  举报