问题:写单元测试,debug时,报错解决方法:在项目/.idea/workspace.xml文件中添加一行代码如下<component name="PropertiesComponent"> ... <property name="dynamic.classpath" value="true" /></component>转自https://blog.csdn.net/kzadmxz/article/details/80322687