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