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

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.csdn.net/lzc4869/article/details/88912161
【2】:https://blog.csdn.net/sinat_40770656/article/details/100750368


版权声明:本文为qq_41211138原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。