Error running ‘XXXXX’: Command line is too long. Shorten command line for OrderServiceApplication or also for Spring Boot default configuration.

解决办法:
修改项目下 .idea\workspace.xml,
找到标签 <component name="PropertiesComponent"> ,
在标签里加一行 <property name="dynamic.classpath" value="true" />
本文介绍了解决因命令行过长导致Errorrunning的问题。通过修改项目下的.ideaworkspace.xml文件,在<componentname=PropertiesComponent>标签内添加<propertyname=dynamic.classpathvalue=true/>一行代码来解决此问题。
5731





