这个问题是在用单元测试 @Test时倒错了包 就是导错包了,正确导包是这个:import org.junit.Test; 这是错误的包 import org.junit.jupiter.api.Test;