Idea运行时报错Error running Application Command line is too long的解决方法

在IDEA 运行有时会报:

Error running ‘Application’: Command line is too long. Shorten command line for Application or aalso for Spring Boot default configuration

解决方法:

1)找到项目里面的idea/workspace.xml文件。

Idea运行时报错Error running Application Command line is too long的解决方法

2)再找到<component name="PropertiesComponent"></component >标签。

Idea运行时报错Error running Application Command line is too long的解决方法

3)再在component 标签里加一行 <property name="dynamic.classpath" value="true" />

Idea运行时报错Error running Application Command line is too long的解决方法

再运行项目就不会报错了