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

问题

  • Srping Boot 项目在启动报错

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

  • error-img

解决方案

  • 修改 修改项目下 .idea\workspace.xml
  • idea-workspace
  • 找到节点
1
2
3
4
5
6
<component name="PropertiesComponent">
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
</component>
  • 增加
1
<property name="dynamic.classpath" value="true" />
  • 最后如
1
2
3
4
5
6
7
<component name="PropertiesComponent">
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="dynamic.classpath" value="true" />
<property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
</component>