Advertisement

Error running ‘XXXApplication‘: Command line is too long. Shorten command line for ‘XXXApplication‘

阅读量:

问题:
在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" />
在这里插入图片描述

重新启动项目,问题解决。

全部评论 (0)

还没有任何评论哟~