天天看点

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

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

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

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

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

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

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

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