JeecgSystemApplication运行正常,但是在debug调试的时候报错
Error running JeecgSystemApplication. Command line is too long.
Shorten the command line via JAR manifest or via a classpath file and rerun.
翻译一下就是:运行“JeecgSystemApplication”时出错:命令行太长。
需要缩短JeecgSystemApplication或Spring引导默认配置的命令行。
解决方案:
1.点击"Edit configuration”
2.如果之前没有配置过,打开界面可能是这样的
在单元测试的配置中找不到Shorten comand line,其实配置项不是没有而是默认被隐藏了,默认没有显示出来,需要手动添加。
3.添加Shorten comand line配置项
点击Modify options
下拉框中选择Shorten comand line
4.配置找到Shorten command line,选择下拉列表中的"JAR manifest"
5.点击"Apply"->"OK"后,重新运行即可