Two modules in a project cannot share the same content root


  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.

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

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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM