idea運(yùn)行SpringBoot項(xiàng)目報(bào)錯-1

idea運(yùn)行報(bào)錯Error running 'Application': Command line is too long的解決方法:

idea啟動項(xiàng)目直接報(bào)錯,Command line is too long,有以下兩種方式解決:

  1. 點(diǎn)擊項(xiàng)目啟動配置項(xiàng) -> shorten command line 選項(xiàng)選擇 classpath file 或 JAR manifest 選項(xiàng) -> 重新啟動工程運(yùn)行即可


    image.png
  2. 修改項(xiàng)目工程里面的.idea/workspace.xml文件,找到里面<component name="PropertiesComponent"></component>標(biāo)簽,然后再在標(biāo)簽中添加一行 <property name="dynamic.classpath" value="true" />,重新啟動項(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> 
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容