问题描述:
增加了个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" />

|