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),再一次添加依賴”該操作無法解決問題