天天看點

Error running 'XXXApplication': Command line is too long. Shorten command line forXXX

Error running 'XXXApplication': Command line is too long. Shorten command line forXXX
在運作一個SpirngBoot項目時發生了一個錯誤:

Error running 'XXXApplication': Command line is too long. Shorten command line forXXXApplication      

指令行過長,打開 /.idea/workspace.xml 檔案, Ctrl+F ,搜尋 PropertiesComponent ,在

<component name="PropertiesComponent">
    ...
</component>      

中加入一行:

<property name="dynamic.classpath" value="true" />      

這個屬性因該是是為整個項目配置自動縮短指令行,OK,問題解決。

參考

【1】:

https://blog.csdn.net/kzadmxz/article/details/80322687

【2】:

https://cloud.tencent.com/developer/ask/198959

繼續閱讀