IDEA启动项目报错Command line is too long

问题描述

DEBUG启动报错:xxxx Command line is too long
报错提示

原因分析:

截取了下启动命令,很长,仅供参考。

D:\JAVA\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:6616,suspend=y,server=n -Drebel.base=C:\Users\Administrator\.jrebel -Drebel.env.ide.plugin.build=a6fe53a423b854f5a43fa5960c19aab9b4fe6a6b -Drebel.env.ide.plugin.version=2024.3.1 -Drebel.env.ide.version=2024.1.2 -Drebel.env.ide.product=IU -Drebel.env.ide=intellij -Drebel.notification.url=http://localhost:17434 -agentpath:C:\Users\Administrator\AppData\Roaming\JetBrains\IntelliJIdea2024.1\plugins\jr-ide-idea\lib\jrebel6\lib\jrebel64.dll -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-Dmanagement.endpoints.jmx.exposure.include=*" -Drebel.plugins=C:\Users\Administrator\AppData\Roaming\JetBrains\IntelliJIdea2024.1\plugins\jr-mp-ide-idea\lib\jr-mybatisplus-1.0.7.jar -javaagent:C:\Users\Administrator\AppData\Local\JetBrains\IntelliJIdea2024.1\captureAgent\debugger-agent.jar=file:/C:/Users/Administrator/AppData/Local/Temp/capture10.props -Dfile.encoding=UTF-8 -classpath C:\Users\Administrator\AppData\Local\Temp\classpath844364142.jar cn.iocoder.yudao.server.YudaoServerApplication

解决方案:

找到当前项目IDEA的工作空间配置文件:.idea/workspace.xml

第一种:纯xml文件

  1. 找到PropertiesComponent节点。
    在这里插入图片描述
  2. 增加代码
<property name="dynamic.classpath" value="true" />
  1. 完整配置
 <component name="PropertiesComponent">
    ...
    <property name="dynamic.classpath" value="true" />
 </component>

第二种:PropertiesComponent节点是key:value形式的

  1. 找到PropertiesComponent节点
    在这里插入图片描述
  2. 在末尾增加
"dynamic.classpath": "true"
  1. 完整配置,提示:保存后新增加的内容会被格式化,可能不在末尾。
<component name="PropertiesComponent"><![CDATA[{
  "keyToString": {
  	  ...
     "dynamic.classpath": "true"
  }
}]]></component>

然后重新启动项目即可,最好关掉IDEA重新打开下。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值