刚拉下来项目,初次启动时报错:error running ‘demotest.test2’: command line is too long. shorten command line for demotest.test2 or also for junit default configurationalso for Application default configuration.
起初我编辑了WebApplication的环境:
配置完成后WebApplication就可以正常启动了。
但在我启动自写的测试方法时又报同样的错误,接下来我更改了文件目录下.idea文件夹下的workspace.xml文件:
找到<component name="PropertiesComponent">
标签,在其中增添:
<property name="dynamic.classpath" value="true" />
即可。
如下图:
接下来就可以正常启动啦