idea運(yùn)行報(bào)錯(cuò)Error running 'Application': Command line is too long的解決方法:
idea啟動(dòng)項(xiàng)目直接報(bào)錯(cuò)车伞,Command line is too long,有以下兩種方式解決:
-
點(diǎn)擊項(xiàng)目啟動(dòng)配置項(xiàng) -> shorten command line 選項(xiàng)選擇 classpath file 或 JAR manifest 選項(xiàng) -> 重新啟動(dòng)工程運(yùn)行即可
修改項(xiàng)目工程里面的.idea/workspace.xml文件涧狮,找到里面
<component name="PropertiesComponent"></component>
標(biāo)簽,然后再在標(biāo)簽中添加一行<property name="dynamic.classpath" value="true" />
,重新啟動(dòng)項(xiàng)目即可
<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>