解决——Cannot access org.springframework.context.ConfigurableApplicationContext

解决——Cannot access org.springframework.context.ConfigurableApplicationContext

首先检查一些右侧maven列表中是否有报错的Module,如果没有的话,需要点上面的加号

在这里插入图片描述

上面这个图我说明一下,我报错的时候gateway这个Module是没有的,因此通过下面的方式添加上

在这里插入图片描述

在检查了pom文件中检查了Spring-Cloud版本等信息无误后,选择这个刚添加的模块然后刷新一下即可解决问题

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44829930/article/details/109444115
今日推荐