微服务启动报错,命令行太长。缩短命令行

412 阅读1分钟

tag: Error running,Command line is too long. Shorten command line

错误原因

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

解决办法

1、修改运行配置Configurations,将默认的Shorten command line的值 user-local default改为JAR mainifest 或者 classpath file

这种办法每次需要对每个类单独设置

2、在项目的.idea/workspace.xml文件中,找到<component name="PropertiesComponent">,后面再添加一行<property name="dynamic.classpath" value="true" />这种方式一次设置就行