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

发布时间 2023-07-07 14:10:53作者: 飞离地平线

 

在运行一个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,问题解决。