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

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

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

 

 

 

解决方法1

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

<component name="PropertiesComponent">

  ...

</component>

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

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

解决方法2

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

 

 

 

 

 

 

 

posted @ 2021-09-06 18:07  joshua317  阅读(4896)  评论(0)    收藏  举报