原因: 有时候IDEA开启了自动导包, 导致@Test注解导入包时 错误导入了 import org.junit.jupiter.api.Test 解决办法: 删除上面的语句 同时导入正确的包: import org.junit.Test;