Error running Command line is too long. IDEA 启动springboot项目报错

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 21:00   2440   0

问题描述:

增加了个jar包,发现项目就启动不起来了

Error running 'EdenServerSystemApplication': Command line is too long. Shorten command line for EdenServerSystemApplication or also for Spring Boot default configuration

问题原因:

IDEA启动项目的时候是使用命令启动的。启动命令会输出在日志控制台的第一行,双击可展开显示全部命令。这个命令特别长,在windows系统中当超过32767个字符,就会报错!

解决方案:

点击报错信息中的蓝色启动类名,会自动跳转到配置页,将Shorten com改选为JAR manifest,重新启动即可。

老版本的IDEA,可以搜索(ctrl+shift+n)workspace.xml文件,在标签<component name="PropertiesComponent">里添加一行属性:<property name="dynamic.classpath" value="true" />

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP