idea测试代码启动Command line is too long. Shorten command line for xxx or also for JUnit default configuration.解决办法
原因:命令行过长,需要更改配置。
解决方案:
- 按照提示,点击 配置设置,如图所设置即可
- 打开项目目录下的 .idea/workspace.xml 查找 PropertiesComponent 节点 新增 dynamic.classpath 配置属性
<component name="PropertiesComponent">
<property name="dynamic.classpath" value="true" />
</component>