关于idea中项目启动时,报错Command line is too long. Shorten command line for xxxApplication or also for Spring Boot default configuration.
报错如下图所示:
解决办法:
在项目的.idea文件夹下的workspace.xml中找到下面代码
<component name="PropertiesComponent">
...
</component>
在里面添加如下代码即可。
<property name="dynamic.classpath" value="true" />
之前一直是修改项目Configurations配置项,如下:
这种修改配置项也能解决问题,但是会导致读不到classpath路径,不建议操作!!!