本文为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