JUnit4写测试用例异常出现了:java.lang.Exception: No tests found matching异常。1.没加@Test注解;2.如果用了spring,可能是spring-test版本和Junit4不兼容; 我的就是没加@Test