在使用idea中的test运行测试类的时候,发现运行不起来,报错信息如下:
Error running ‘test’: Command line is too long. Shorten command line for test or also for Application default configuration.
这个问题只需要修改一下.idea下的workspace.xml文件,首先打开workspace文件找到<component name="PropertiesComponent">这个标签,然后在这个标签里面添加一行<property name="dynamic.classpath" value="true" />即可。
本文解决IDEA中测试类无法运行的问题,错误信息显示命令行过长。通过修改workspace.xml文件,在PropertiesComponent标签下添加一行property,设置dynamic.classpath为true,即可解决问题。
2940

被折叠的 条评论
为什么被折叠?



