zl程序教程

您现在的位置是:首页 >  工具

当前栏目

idea运行报Error running ‘XApplication‘_ Command line is too long. Shorten command line for XApplication

IDEA Error for 运行 is too long Command
2023-06-13 09:13:24 时间

文章目录

SpringBoot项目启动报错

10:54	Error running 'xxxApplication': Command line is too long. Shorten command line for xxxApplication or also for Application default configuration.

报错翻译

10:54 运行“xxxApplication”时出错:命令行太长。缩短 xxxApplication 或应用程序默认配置的命令行。

解決办法

  1. 设置程序的启动配置,把Shorten command line设置成classpath…那个选项。
  1. 如果上述操作后还是不行。找到项目工程里面的.idea/workspace.xml文件, 然后再找到
<component name="PropertiesComponent"></component>

标签,在标签内添加一行

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

如下图所示:

保存后项目可以正常启动了。 ​

呜啦啦啦啦 看官喜欢的话点赞收藏或者关注一下吧