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),再一次添加依赖”该操作无法解决问题