idea的Project Structur -> Modules 对 module 进行修改点击应用或保存时出现问题,报下图的错误:

Content root "xx" is defined for modules "xx" and "xx". Two modules in a project cannot share the same content root.

Two modules in a project cannot share the same content root

   解决办法:将“my-project_main"或”spring-framework-5.0.x-my-project_main"中选择一个进行删除,只保留一个就可以。

  PS:网上的“先删除全部依赖(Libraries和Modules中的Dependencies),再一次添加依赖”该操作无法解决问题

Two modules in a project cannot share the same content root

相关文章:

  • 2021-05-08
  • 2021-05-19
  • 2022-12-23
  • 2021-11-30
  • 2021-05-05
  • 2021-12-12
  • 2021-11-11
猜你喜欢
  • 2021-04-21
  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2022-01-24
相关资源
相似解决方案