天天看点

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

继续阅读