问题如图:
Error running ‘SpringBootMainApplication’: Command line is too long. Shorten command line for SpringBootMainApplication or also for Application default configuration.
两种方法都尝试一下:
1、修改项目下 .idea\workspace.xml
如果idea项目目录下看不到或者不明显,可以去你项目所在的磁盘目录下去寻找这个文件,
找到标签 。在标签里加一行 :
<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、Edit Configuration
将默认的shorten command line 的值由默认的user-local default:none 改为JAR mainfest 或classpath file即可
两种方法都试试,基本就恢复了。