其中这个博主的办法是有效的,但是可能因为他标题的有点小错误,所以没有被推到比较前面的推荐页吗?
原文地址:https://blog.csdn.net/lalala323/article/details/89085343
可以直接在对应的pom.xml中添加下面的代码:
//Maven依赖
<dependency>
<groupId>com.github.stefanbirkner</groupId>
<artifactId>system-rules</artifactId>
<version>1.18.0</version>
<scope>test</scope>
</dependency>