有时候我们在 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" />启动就成功了。