Idea单测执行报错“Command line is too long“ 解决办法
生活随笔
收集整理的這篇文章主要介紹了
Idea单测执行报错“Command line is too long“ 解决办法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
最近在使用idea執行項目的單元測試的時候,會出現如下報錯 : Command line is too long. Shorten command line for {className} or also for JUnit defaultconfiguration.
如下圖所示:
解決方法一 : 修改啟動配置
idea點擊Edit Configurations --> Shorten command line下拉選擇JAR manifest
解決方法二 :
在該項目下找到如下文件: /.idea/workspace.xml
在文件中找到
然后在其中添加 :
<property name="dynamic.classpath" value="true" />這樣問題就解決了。
總結
以上是生活随笔為你收集整理的Idea单测执行报错“Command line is too long“ 解决办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 字符串匹配--Sunday算法
- 下一篇: nginx log记录请求响应日志及日志