idea运行报错Error running 'Application': Command line is too long的解决方法:
idea启动项目直接报错,Command line is too long,有以下两种方式解决:
-
点击项目启动配置项 -> shorten command line 选项选择 classpath file 或 JAR manifest 选项 -> 重新启动工程运行即可
修改项目工程里面的.idea/workspace.xml文件,找到里面
<component name="PropertiesComponent"></component>
标签,然后再在标签中添加一行<property name="dynamic.classpath" value="true" />
,重新启动项目即可
<component name="PropertiesComponent">
<property name="ExpandSpringBootJavaOptionsPanel" value="true" />
<property name="RequestMappingsPanelOrder0" value="0" />
<property name="RequestMappingsPanelOrder1" value="1" />
<property name="RequestMappingsPanelWidth0" value="75" />
<property name="RequestMappingsPanelWidth1" value="75" />
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<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" />
</component>