版权声明:一家之言,看完就忘了吧 https://blog.csdn.net/leisure_life/article/details/82315411
新构建一个项目
出现如下异常
The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. It is indirectly referenced from required .class files
The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. It is indirectly referenced from required .class files
解决方案:
进入项目pom.xml所在目录
执行cmd
命令
在命令行中输入:
mvn dependency:purge-local-repository
将会重新下载依赖,问题将会得到解决。