idea 运行启动类报错 Command line is too long
启动报错信息:Error running ‘Application‘: Command line is too long.
翻译过来就是:启动命令过长!
解决方案
1、点开项目启动配置项目;

2、shorten command line 选项选择 JAR manifest 或者 classpath file 选项,点击 Apply 和 OK,然后重启项目;

idea 运行测试类报错
Error running test: Command line is too long
上面是运行启动类报错的解决方案,运行测试类也可能会出现这种情况;
解决方案
1、项目右键打开本地文件夹;

2、打开*.idea* 文件夹下的 workspace.xml 文件,在<component name="PropertiesComponent"> 这个标签下加一行配置:<property name="dynamic.classpath" value="true" />

整理自:
https://blog.csdn.net/nbxinjian/article/details/124149401
https://blog.csdn.net/weixin_45886609/article/details/126394026

![[附源码]计算机毕业设计校园订餐系统Springboot程序](https://img-blog.csdnimg.cn/fd76442984d245a3a2ca19999fa8bcb9.png)




![[附源码]计算机毕业设计校园订餐管理系统Springboot程序](https://img-blog.csdnimg.cn/16b5aceddf3c49d29e797c73c5ddf80d.png)












