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文件
- 找到
PropertiesComponent
节点。
- 增加代码
<property name="dynamic.classpath" value="true" />
- 完整配置
<component name="PropertiesComponent">
...
<property name="dynamic.classpath" value="true" />
</component>
第二种:PropertiesComponent节点是key:value形式的
- 找到
PropertiesComponent
节点
- 在末尾增加
"dynamic.classpath": "true"
- 完整配置,提示:保存后新增加的内容会被格式化,可能不在末尾。
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
...
"dynamic.classpath": "true"
}
}]]></component>
然后重新启动项目即可,最好关掉IDEA重新打开下。
原文地址:https://blog.csdn.net/qq_40622375/article/details/142813671
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!