问题:
在IDEA中启动一个SpirngBoot项目时,报错如下:
Error running 'GunsApplication': Command line is too long. Shorten command line for 'GunsApplication' or also for Spring Boot default configuration.
解决方案:
打开项目所在目录,找到/.idea/workspace.xml 文件,找到
<component name="PropertiesComponent">
在其子元素中添加一个
<property name="dynamic.classpath" value="true" />
重新启动项目,问题解决。