Springboot启动异常 Command line is too long

编程入门 行业动态 更新时间:2024-10-09 22:24:44

Springboot启动<a href=https://www.elefans.com/category/jswz/34/1771210.html style=异常 Command line is too long"/>

Springboot启动异常 Command line is too long

Springboot启动异常 Command line is too long

Springboot启动时直接报异常

Command line is too long. Shorten command line for xxxxxApplication or also for Spring Boot default

解决方案:

修改 SystemApplication 的 Shorten command line,选择 JAR manifest

扩展内容:

操作系统的命令行长度限制,因此如果类路径太长,或者有许多 VM 参数,程序就无法启动。IDEA 可以在启动类配置中实现缩短类路径(shorten command line )。none:这是默认选项,idea 不会缩短命令行。如果命令行超出了 OS 限制,这个想法将无法运行您的应用程序,但是工具提示将建议配置缩短器。JAR manifest:idea 通过临时的 classpath.jar 传递长的类路径。原始类路径在 MANIFEST.MF 中定义为 classpath.jar 中的类路径属性。classpath file:idea 将一个长类路径写入文本文件中。

更多推荐

Springboot启动异常 Command line is too long

本文发布于:2024-02-19 18:04:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1765104.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:异常   Springboot   Command   long   line

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!