【报错】Error running ‘WebappApplication‘: Command line is too long. Shorten command line for WebappAppl

问题:启动项目报错:Error running 'WebappApplication': Command line is too long. Shorten command line for WebappAppl

 

解决方法:启动参数修改:edit configuration-springboot-webapplication-shorten command line

改成class file或者jar mainfest即可

这里改成class file

  

shorten command line知识点

如果类路径太长,或者有许多VM参数,程序就无法启动。原因是大多数操作系统都有命令行长度限制。在这种情况下,IntelliJIDEA将试图缩短类路径。

  shorten command line 选项提供三种选项缩短类路径。

  none:这是默认选项,idea不会缩短命令行。如果命令行超出了OS限制,这个想法将无法运行您的应用程序,但是工具提示将建议配置缩短器。

  JAR manifest:idea 通过临时的classpath.jar传递长的类路径。原始类路径在MANIFEST.MF中定义为classpath.jar中的类路径属性。

  classpath file:idea 将一个长类路径写入文本文件中。

建议使用第三种方式

  • 4
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值