新项目在Idea里面启动的时候,有的时候会报错Error running ‘Application’: Command line is too long. Shorten command line for Application or aalso for Spring Boot default configuration,报错信息如下所示:
解决方法:
在项目里面的idea/workspace.xml文件,找到<component name="PropertiesComponent"></component >
该标签,
在标签最后一行加入<property name="dynamic.classpath" value="true" />该标签,如下图:
这样配置完成,然后idea清除缓存重启一下就好,重新启动如下图:
最后重启一下就好了,谢谢观看。