Error running ‘Application‘: Command line is too long.Shorten command line for

一、报错信息

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

二、报错原因

springboot项目启动命令过长

三、解决办法

点击项目启动配置项 -> shorten command line 选项选择 classpath file 或 java manifest 选项 -> 重新启动工程运行即可
在这里插入图片描述
原文链接:https://blog.csdn.net/lzc4869/article/details/88912161

  • 5
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
"Error running EcepingCourseApplication. Command line is too long" 是一个错误提示,意味着运行EcepingCourseApplication时命令行太长了。这个错误通常出现在IDEA中使用Spring Boot时。为了解决这个问题,可以通过以下方法缩短命令行的长度: 1. 使用JAR运行项目:将项目打包成JAR文件,然后通过命令行或者配置IDEA以JAR方式运行项目。这样可以减少命令行中的参数数量和长度。 2. 使用命令行参数缩短命令行长度:在运行配置中,可以尝试缩短命令行所需的参数数量和长度,例如减少JVM参数、环境变量等。 3. 分解应用程序:如果应用程序非常复杂,可以考虑将其分解为多个较小的模块或服务。这样可以减少单个命令行的长度。 总之,"Error running EcepingCourseApplication. Command line is too long" 错误提示表明命令行太长,可以通过将项目打包成JAR文件、缩减命令行参数或者分解应用程序来解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [idea Error running Application. Command line is too long. Shorten the command line via JAR manifest](https://blog.csdn.net/zhuiqiuzhuoyue583/article/details/126711236)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [解决报错Error running RxtTestApplication. Command line is too long. Shorten the command line via JAR](https://blog.csdn.net/weixin_44740485/article/details/130218189)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值