Intellij IDEA运行报Command line is too long. 的解决办法 Configurable command line shortener and more

Intellij IDEA运行报Command line is too long. 的解决办法 Configurable command line shortener and more

问题描述:My classpath got too long...Command line is too long. Shorten command line for ImowTest.testLoadRegeling or also for JUnit default configuration
请添加图片描述

Error running 'xxx':
Command line is too long. Shorten command line for xxx or also for Application default configuration.

打开项目文件夹,找到.idea/workspace.xml文件,在<component name="PropertiesComponent">标签里添加一行属性:<property name="dynamic.classpath" value="true" />
请添加图片描述
原因是当类路径太长,或者有很多 VM 参数时,程序将无法启动。大多数操作系统都有命令行长度限制。在这种情况下,IntelliJ IDEA 会尝试缩短类路径。程序员寻求缩短命令行,最好技术缩短应用程序或 Spring Boot 默认配置的命令行。

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值