1. 问题所示
解决大部分的Maven依赖,准备启动的过程中,出现如下问题:
Error running YudaoServerApplication. Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun
截图如下:
2. 原理分析
针对Bug的提示词,分析如下:
在启动 xxx 时,命令行过长,超出了操作系统的限制,这可能是由于类路径中包含了太多的 JAR 文件或者参数过多导致的
具体的解决方法有两种:
- 通过 JAR Manifest 缩短命令行: