SpringBootTest中Command line is too long问题解决

有时候在做单元测试的时候,会报错

Command line is too long问题解决

这是因为引入的jar包太多了,导致命令行太长超过了系统的限制。

此时可以通过在.idea/workspace.xml中

找到

<component name="PropertiesComponent">

  ...

</component>

然后在其中添加:

<property name="dynamic.classpath" value="true" />

问题得到解决。

posted @ 2022-07-12 15:26  Mars.wang  阅读(854)  评论(0编辑  收藏  举报