Command line is too long. Shorten command line for SpringBootMainApplication or also for Application

Posted 醇氧

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Command line is too long. Shorten command line for SpringBootMainApplication or also for Application相关的知识,希望对你有一定的参考价值。

问题如图:

Error running 'SpringBootMainApplication': Command line is too long. Shorten command line for SpringBootMainApplication or also for Application default configuration.

解决方案1 :

修改项目下 .idea\\workspace.xml

找到标签 <component name="PropertiesComponent">。在标签里加一行  :

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

 <component name="PropertiesComponent">
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="aspect.path.notification.shown" value="true" />
    <property name="dynamic.classpath" value="true" />
    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1543830701622" />
    <property name="settings.editor.selected.configurable" value="reference.settingsdialog.project.gradle" />
  </component>

解决方案2 :

1、点击项目启动配置项

2、 Enviroment 

3、Shorten command line 选项 --> 选择 classpath file 或JAR manifest 选项

4、重新启动工程运行即可。

 

以上是关于Command line is too long. Shorten command line for SpringBootMainApplication or also for Application的主要内容,如果未能解决你的问题,请参考以下文章

IntelliJ IDEA - Command line is too long

Idea报错Command line is too long

Command line is too long. Shorten the command line via JAR manifest

springboot项目运行错误:Error running ‘Application‘: Command line is too long.Shorten command line for

Command line is too long的解决办法

报错Command line is too long. Shorten the command line xxx解决办法