IDEA:Error running,Command line is too long.解决方案
IDEA:Error running,Command line is too long.
报错如下
Error running SendSmsUtil. Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun.

原因是启动命令过长。
解决方法
1、打开Edit Configurations

2、点击Modify options设置,勾选Shorten command line

3、在Edit Configurations界面下方新增的Shorten command line选项中选择JAR manifest或classpath file

然后 Apply,OK 即可。
IDEA 出现问题:Error running,Command line is too long. Shorten command line
报错信息
Error running SystemServerApplication.
Command line is too long.
Shorten the command line via JAR manifest or via a classpath file and rerun.

运行"系统服务器应用程序"时出错。命令行太长。
通过 JAR 清单或类路径文件缩短命令行,然后重新运行。
解决步骤
在项目的.idea/workspace.xml文件中,找到,后面在添加一行

总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。
相关文章
spring中BeanPostProcessor的作用和使用注意事项
在Spring框架中,BeanPostProcessor 是一个核心扩展接口,允许你在Bean实例化的过程中插入自定义逻辑,本文给大家介绍spring中BeanPostProcessor的作用,感兴趣的朋友一起看看吧2025-04-04
java中Memcached的使用实例(包括与Spring整合)
这篇文章主要介绍了java中Memcached的使用实例(包括与Spring整合),具有很好的参考价值,希望对大家有所帮助。如有错误或未考虑完全的地方,望不吝赐教2021-07-07
SpringBoot2底层注解@Configuration配置类详解
这篇文章主要为大家介绍了SpringBoot2底层注解@Configuration配置类详解,有需要的朋友可以借鉴参考下,希望能够有所帮助,祝大家多多进步,早日升职加薪2022-05-05


最新评论