一、IDEA运行项目报错:Command line is too long. Shorten command line for MainApplication or also for Spring Boot default configuration.
二、接手新项目后,导入到IDEA后,在run的时候出现问题:
Error running 'SpringBootMainApplication': Command line is too long. Shorten command line for SpringBootMainApplication or also for Application default configuration.
三、解决方案:
1. 修改项目根目录下的文件:.idea\workspace.xml
2. 找到标签<component name="PropertiesComponent">
。在标签里加一行 :
<property name="dynamic.classpath" value="true" />
添加完之后:
<component name="PropertiesComponent">
<property name="RequestMappingsPanelOrder0" value="0" />
<property name="RequestMappingsPanelOrder1" value="1" />
<property name="RequestMappingsPanelWidth0" value="75" />
<property name="RequestMappingsPanelWidth1" value="75" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="aspect.path.notification.shown" value="true" />
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1595916973902" />
<property name="dynamic.classpath" value="true" />
<property name="last_opened_file_path" value="D:/Java 1/WorkSpace/workspaces-ideaIU-2018.2.3/V1.6.1SpringBoot" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="project.structure.last.edited" value="Project" />
<property name="project.structure.proportion" value="0.0" />
<property name="project.structure.side.proportion" value="0.2" />
<property name="settings.editor.selected.configurable" value="http.proxy" />
</component>