1.pom.xml中添加依赖
<dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>5.3.1</version> </dependency>
2.启动junit插件,勾上->apply
3.重新启动idea