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
 

 

解决方法1

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

<component name="PropertiesComponent">

  ...

</component>

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

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

解决方法2

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

 

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

 

 

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

 

 

相关文章:

  • 2021-12-01
  • 2021-08-17
  • 2021-09-14
  • 2021-06-11
  • 2021-09-19
  • 2021-10-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2021-04-02
  • 2021-04-11
  • 2021-05-19
相关资源
相似解决方案