IDEA运行新项目时报 Error running ‘XXApplication‘: Command line is too long. Shorten command line for…… 错误
解决方法:
首先找到项目工程里面的.idea/workspace.xml文件,然后再找到<component name="PropertiesComponent"></component>
标签,标签如图所示:
然后再在component 标签中添加一行 <property name="dynamic.classpath" value="true" />
,如图:
保存后,再次启动项目即可成功运行了。