解決Intellij IDEA 編譯運行時出現Error running xxxApplication Command line is too long


Idea在編譯項目的時候報錯,保存信息如下:

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

 

 

 

解決方法1

在本項目文件夾.idea/workspace.xml中找到

<component name="PropertiesComponent">

  ...

</component>

然后在其中添加一行屬性即可解決:

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

解決方法2

打開程序的運行配置,把Shorten command line改為JAR manifestclasspath file,如圖所示:

 

 

 

 

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM