部署springboot项目提示:Cannot access org.springframework.context.ConfigurableApplicationContext

部署springboot项目提示:Cannot access org.springframework.context.ConfigurableApplicationContext,第1张

部署springboot项目提示:Cannot access org.springframework.context.ConfigurableApplicationContext

导入的StringBoot项目,启动类红线报错:
Cannot access org.springframework.context.ConfigurableApplicationContext
解决方案:

删掉main目录下的main.iml文件,然后刷新项目,重构maven即可

切记勿要删项目目录下的*.iml文件。误删的使用Ctrl /⌘+Z撤回即可。

原因可能是导入项目的使用没有用maven导入。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5696778.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存