springBoot项目启动报错Error running ‘WebApplication‘: Command line is too long.

1:问题

在启动boot项目时,出现Error running 'WebApplication': Command line is too long. Shorten command line for WebApplication or also for Spring Boot default configuration.

2:解决方法

到该项目文件夹.idea/workspace.xml中找到

<component name="PropertiesComponent">

  ...

</component>

然后在其中添加:

<property name="dynamic.classpath" value="true" />  

就能运行了

 

3:原因

命令行的参数太长,需要进行修改。