首页 > 技术文章 > 项目运行报错——Error running xxx : Command line is too long.Shorten command line ..解决方法

yustudy 2022-04-08 14:00 原文

学习记录

  项目运行报错——Error running xxx : Command line is too long.Shorten command line for XXX or also for spring boot default configuration解决方法

 

在IDEA 运行有时会报:

 

 

错误原因 出现这个的原因一般是因为项目需要打印的环境变量太长,超过了限制,需要你缩短命令行来解决问题。

解决方法:

2021版本前的修改此次就可以了

 

 

2021版本开始

1、找到项目里面的idea/workspace.xml文件。

 

 

2、找到<component name="PropertiesComponent"></component >标签。

再在component 标签里加一行 <property name="dynamic.classpath" value="true" />

 

学无止境

推荐阅读