日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無(wú)先后,達(dá)者為師

網(wǎng)站首頁(yè) 編程語(yǔ)言 正文

IDEA報(bào)錯(cuò)Error running ‘Application‘: Command line is too long解決方案

作者:多放香菜少加蔥 更新時(shí)間: 2022-07-21 編程語(yǔ)言

問(wèn)題背景
IDEA在啟動(dòng)項(xiàng)目時(shí),突然報(bào)錯(cuò)

Error running 'Application':
Command line is too long.Shorten command line for Application or also for Spring Boot default configuration.

解決方案
方案一(當(dāng)前項(xiàng)目設(shè)置)

1 當(dāng)前項(xiàng)目點(diǎn)擊運(yùn)行下拉框的Edit Configurations
在這里插入圖片描述

2 點(diǎn)擊Environment,選擇Shorten command line下拉框,選擇classpath file或者JAR manifest,點(diǎn)擊OK確認(rèn)
在這里插入圖片描述
方案二(全局設(shè)置)
1 由于方案一是當(dāng)前項(xiàng)目設(shè)置,其他項(xiàng)目打開(kāi)又沒(méi)有了,所以可以設(shè)置全局,點(diǎn)擊File→New Projects Settings→Run Configuration Templates for New Projects
在這里插入圖片描述
2 點(diǎn)擊springboot項(xiàng)目,其他跟方案一相同
在這里插入圖片描述

原文鏈接:https://blog.csdn.net/qq_41512902/article/details/125843641

欄目分類(lèi)
最近更新