Unable to start EmbeddedWebApplicationContext due to missing EmbeddedServletContainerFactory bean. 原因:注解问题 首先是清理maven依赖关系,在重新生成,刷新,然后再运行看看报错情况 参考网址