Command line is too long. Shorten command line for...

问题描述

使用Idea启动SpringBoot项目报错,报错为 Error running ‘DemoApplication’: Command line is too long. Shorten command line for DemoApplication or also for Spring Boot default configuration.

原因:变量太长了,超过了限制(后续补充)

解决方案

1.直接修改启动项配置参数(无需重启Idea)

在这里插入图片描述

2.修改workspace.xml(一劳永逸法,一次修改,无需再管,需要重启Idea)

进入工程代码根目录下,找到.idea文件夹,打开workspace.xml,直接编辑打开,搜索关键字 PropertiesComponent,插入代码片段

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

重启Idea,完美解决
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/lxn1023143182/article/details/112762548