本文為joshua317原創文章,轉載請注明:轉載自joshua317博客 https://www.joshua317.com/article/99
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 manifest
或classpath file
,如圖所示:
本文為joshua317原創文章,轉載請注明:轉載自joshua317博客 https://www.joshua317.com/article/99