This question already has answers here:
The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. It is indirectly referenced from required .class files

(10个答案)


2年前关闭。




在运行主类SpringBoot2RestServiceApplication时,出现以下异常:
cannot access org.springframework.context.ConfigurableApplicationContext

它显示了编译错误:

任何帮助将不胜感激。谢谢。

最佳答案

尝试删除(删除)您的本地存储库(〜/.m2/repository/),然后再次运行mvn clean install

10-05 22:13