Idea在编译项目的时候报错,保存信息如下:

15:42 Error running 'xxxxApplication': Command line is too long. Shorten command line for xxxxApplication or also for Spring Boot default configuration.


解决Intellij IDEA 编译运行时出现Error running xxxApplication Command line is too long_ide​  


解决方法1

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

<component name="PropertiesComponent">

...

</component>

然后在其中添加一行属性即可解决:

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

解决方法2

打开程序的运行配置,把​​Shorten command line​​​改为​​JAR manifest​​​或​​classpath file​​,如图所示:


解决Intellij IDEA 编译运行时出现Error running xxxApplication Command line is too long_解决方法_02​  



解决Intellij IDEA 编译运行时出现Error running xxxApplication Command line is too long_Springboot2.0_03​