springBoot启动报错Error running ‘Application‘: Command line is too long. Shorten command

当遇到springBoot启动错误'Error running ‘Application‘: Command line is too long. Shorten command'时,可以通过两种方式解决:1. 在IDEA中修改启动配置,选择classpath file或jar manifest选项;2. 编辑idea的workspace.xml文件,添加属性shortenCommandLine。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

springBoot启动报错Error running ‘Application’: Command line is too long. Shorten command

1.报错信息

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

2.报错原因

springboot项目启动命令过长

3.解决办法

方法一:修改IDEA设置

点击项目启动配置项 -> shorten command line 选项选择 classpath file 或 jar manifest 选项 -> 重新启动工程运行即可
在这里插入图片描述
在这里插入图片描述

方法二:修改idea配置文件

打开 /.idea/workspace.xml 文件, Ctrl+F ,搜索 PropertiesComponent ,在

<component name="PropertiesComponent">
    ...
</component>

中加入一行:

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

这个属性应该是为整个项目配置自动缩短命令行

在这里插入图片描述

参考
【1】:https://blog.youkuaiyun.com/lzc4869/article/details/88912161
【2】:https://blog.youkuaiyun.com/sinat_40770656/article/details/100750368

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值