方法一
在运行一个SpirngBoot项目时发生了一个错误:
Error running ‘XXXApplication’: Command line is too long. Shorten command line forXXX
Error running 'XXXApplication': Command line is too long. Shorten command line forXXXApplication
表示名称太长,idea文件夹里workspace.xml文件修改一下就好
<component name="PropertiesComponent">
...
</component>
通过ctrl+F搜索到上面的标签,标签里添加一行代码
<property name="dynamic.classpath" value="true" />
方法二
Step1:点击项目启动配置项
Step2: shorten command line 选项选择 JAR manifest 或者 classpath file 选项