在项目启动类路径特别长是会出现这个问题,不过今天运行gradle项目的时候也有该问题;

根本原因是启动参数超过了系统命令行长度限制

2个方案解决

1.找到工程下的.idea/workspace.xml这个文件,添加如下项:

<component name="PropertiesComponent">...<!-- 这句是你需要添加的项 --><property name="dynamic.classpath" value="true" />...
</component>

2.(idea版本高于2017.3)Shorten command line选择后2个,JAR mainifest 或 classpath File(或类似这个)

Command line is too long. Shorten command line for Application or also for Spring Boot default...相关推荐

  1. Command line is too long. Shorten command line for Application---微服务升级_SpringCloud Alibaba工作笔记0067

    今天打开idea项目,启动的时候,无法启动报错: 15:19    Error running 'Application': Command line is too long. Shorten com ...

  2. Command line is too long. Shorten command line for Doc.generateAsciiDocs or

    Intellij IDEA启动项目报Command line is too long. Shorten command line for XXXApplication or also for 解决方法 ...

  3. IDEA启动main函数时,Command line is too long Shorten command line for XXX or also问题解决

    巧了,最近起了一个挺长的类名,启动main函数的时候,idea返回了一个Command line is too long Shorten command line的报错,请教研究之后,解决方法如下 方 ...

  4. Idea报错:Command line is too long. Shorten command line for className

    问题描述 使用Idea运行项目在项目启动时报错: Command line is too long. Shorten command line for XXXApplication or also f ...

  5. Error running Command line is too long. Shorten command line for

    Error running 'xxxxxxxxApplication': Command line is too long. Shorten command line for xxxxxxx? 使用网 ...

  6. 【idea】Command line is too long. Shorten command line for XXXApplication

    Command line is too long. Shorten command line for XXXApplication or also for Spring Boot default- 问 ...

  7. Command line is too long. Shorten command line for

    问题 今天在idea中运行一个hbase jdbc项目时无法启动,提示如下: Command line is too long. Shorten command line for SystemAppl ...

  8. Command line is too long. Shorten command line for XXXApplication or also for Spring Boot

    问题: 启动一个新项目的主函数入口类(启动类)时无法启动,提示如下: Command line is too long. Shorten command line for SystemApplicat ...

  9. Command line is too long. Shorten command line for PictureApplication or also for Spring Boot defaul

    一,报错信息 Error running 'PictureApplication': Command line is too long. Shorten command line for Pictur ...

  10. 解决:Command line is too long. Shorten command line for xxx or also for Application default configurat

    解决:Error running 'xxx': Command line is too long. Shorten command line for xxx or also for Applicati ...

最新文章

  1. 高清视频实时对讲SDK源码
  2. python源码编译 mingw_使用mingw32 在windows python26 下编译安装4suite-xml
  3. Codeforces Round #703 (Div. 2) D . Max Median 二分 +思维
  4. 【汇编语言】程序设计过程,如何避免数据类型匹配错误?
  5. 【转】ABP源码分析十三:缓存Cache实现
  6. php json 循环输出html,我要用js从json文件中取值,并输出的html页面,有个问题
  7. POST请求转换为其他请求失效 input type=“hidden“ name=“_method“ value=“put“无效
  8. JavaScript异步编程【上】 -- 同步和异步、事件循环(EventLoop)、微任务和宏任务、回调函数
  9. Redis进阶实践之十八 使用管道模式提高Redis查询的速度
  10. Android2.2+opencv3.1配置实现
  11. java script 视频教程_智能社JS全套视频教程+高清入门javascript下载
  12. 新代系统PLC编程软件 新代PLC编程软件中文版梯形图
  13. matlab调频信号,基于matlab的线性调频信号的仿真
  14. kali扫描内网ip_kali linux 如何查找局域网ip
  15. 计算机和机械类哪个工资高,机械工程师和软件工程师哪个工资高前景好?
  16. python人物出场统计实例_实例2之《三国演义》人物出场统计
  17. 流媒体学习之路——Google的新拥塞算法SQP详解(编写中)
  18. 上海公积金网上提取_为什么提取上海公积金租房这么简单?
  19. 机械硬盘显示拒绝访问要怎样办啊
  20. 手把手教你,搭建内网穿透服务

热门文章

  1. 二极管特性曲线测试方法的研究和二极管特性的研究
  2. 奥创手机群控安装到魅蓝3的流程
  3. 手把手教你使用R语言做竞争风险模型并绘制列线图
  4. 仿射变换再次秒杀2011山东理科高考压轴题(圆锥曲线)
  5. s一般怎么称呼自己的m_英文信的开头和结尾,怎么写才不会出错?
  6. 苹果手机如何深度清理_手机应用 | 推荐5款深度清理手机内存的软件
  7. 使用计算机VLOOKUP函数需注意什么,lookup和vlookup的区别 计算机Excel中的lo...
  8. 网络营销:信任是流量时代的蓝海
  9. 苹果又开了一个“坏头”
  10. 现在的小程序,商家凭什么入驻你!