若依启动项目报Command line is too long. Shorten command line for……
发布时间
阅读量:
阅读量

Error running 'RuoYiApplication': Command line is too long. Shorten command line for RuoYiApplication or also for Spring Boot default configuration?
目录
一、问题原因
二、解决办法
(1)选择Edit Configurationis...
(2)展开Environment
(3)设置Shorten command line
三、启动项目
一、问题原因
这个异常的出现是因为运行项目的指令过长引起的,在IDEA进行代码运行时加载了很多指令,这些指令拼接后的长度超出了系统的最大长度,当你的命令行长度超过 32768 个字符时,idea就会提示你使用短一点的命令行。
二、解决办法
(1)选择Edit Configurationis...

(2)展开Environment

(3)设置Shorten command line
在此条目下选择Shorten command line默认选择的是user-local default:none

此处可以选classpath file或者jar manifest运行项目均可解决此问题 。
三、启动项目
保存修改之后的配置,再次运行项目,项目就可以启动起来了。

全部评论 (0)
还没有任何评论哟~
