问题 解决方案 方法一: 方法二: .idea/workspace.xml中找到: <component name="PropertiesComponent"> </component> 在其中添加: <property name="dynamic.classpath" value="true" />