運(yùn)行springboot項(xiàng)目的時(shí)候,出現(xiàn)報(bào)錯(cuò),報(bào)錯(cuò)信息如下:
Error running OrderServiceBoot. Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun.
報(bào)錯(cuò)原因:
springboot項(xiàng)目啟動(dòng)命令過(guò)長(zhǎng)
解決辦法
解決方法有兩種,正如報(bào)錯(cuò)信息截圖所示,縮短命令行或者改為應(yīng)用程序默認(rèn)配置。
方案一:修改配置
點(diǎn)擊項(xiàng)目啟動(dòng)配置項(xiàng) --> Enviroment --> Shorten command line 選項(xiàng) --> 選擇 classpath file 或JAR manifest 選項(xiàng) --> 重新啟動(dòng)工程運(yùn)行即可。
正常截圖有Shoten command line選項(xiàng):
如果沒(méi)有Shoten command line選項(xiàng),可以通過(guò)Modify options選出來(lái):
方案二:修改工作空間
修改工作空間,路徑為:.idea --> workspace.xml
找到標(biāo)簽 。在標(biāo)簽里加一行:文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-514633.html
<property name="dynamic.classpath" value="true" />
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-514633.html
到了這里,關(guān)于報(bào)錯(cuò)Command line is too long. Shorten the command line xxx【解決辦法】的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!