报错Command line is too long. Shorten the command line xxx解决办法

Posted 格子衫111

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了报错Command line is too long. Shorten the command line xxx解决办法相关的知识,希望对你有一定的参考价值。

运行springboot项目的时候,出现报错,报错信息如下:
Error running OrderServiceBoot. Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun.

报错原因:
springboot项目启动命令过长

解决办法
解决方法有两种,正如报错信息截图所示,缩短命令行或者改为应用程序默认配置。

方案一:修改配置
点击项目启动配置项 --> Enviroment --> Shorten command line 选项 --> 选择 classpath file 或JAR manifest 选项 --> 重新启动工程运行即可。

正常截图有Shoten command line选项:

如果没有Shoten command line选项,可以通过Modify options选出来:

方案二:修改工作空间
修改工作空间,路径为:.idea --> workspace.xml

找到标签 。在标签里加一行:

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

以上是关于报错Command line is too long. Shorten the command line xxx解决办法的主要内容,如果未能解决你的问题,请参考以下文章

idea报错Command line is too long. Shorten command line for ServiceStarter

idea解决Command line is too long. Shorten command line for ServiceStarter or also for Application报错

Intellij IDEA运行报错Command line is too long的处理解决方法

idea报错Error running $classname: Command line is too long. Shorten command line for $classname.

idea报错:Error running $classname: Command line is too long. Shorten command line for $classname.(示例代码

成功解决 运行报错信息:Error running xxx项目: Command line is too long. Shorten command line for xxx项目 or also fo