idea启动项目报Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactor
错误:Caused by: org.springframework.context.ApplicationContextException: Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean.应该是idea版本的原因,同样的代码有些可以正常启动,有些会报上面的错误。折腾了好久最后用下面的方案解决的:找到pom.xml文件里的容器依赖,如下图如果没有&.
原创
2020-10-03 11:32:48 ·
3500 阅读 ·
0 评论