导入一个maven项目后,由于系统没有将jar包自动导入到classpath,项目所有报红的地方都要ALT+enter提示才可以导入,解决方式:

1.关闭idea工具

2.删除该maven项目下所有的 *.iml 文件

3.重启IDEA打开刚刚导入的项目

4.点击Maven Projects中的Reimport All Maven Projects.

如何一次性Add library ‘Maven: org.springframework:spring-beans:4.1.4.RELEASE‘ to classpath等

相关文章:

  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2021-04-28
  • 2021-05-25
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2019-10-19
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2021-04-15
相关资源
相似解决方案