摘要: https://www.cnblogs.com/pandaly/p/12901574.html 阅读全文
posted @ 2021-11-08 14:43 哩个啷个波 阅读(502) 评论(0) 推荐(0)
摘要: 写了一个idea测试类使用@Test然后报错,造成报错的可能原因: 1、首先是检查是不是因为自己懒在创建类的时候将类名写成了Test 如果类名为Test的话,也无法使用,但是可以使用完全限定名。 2、使用的jar包版本号过低 @Test注解只有junit4以上的版本可以使用,如果使用的是低版本的不能 阅读全文
posted @ 2021-11-08 14:18 哩个啷个波 阅读(2873) 评论(0) 推荐(1)
摘要: 查阅了下资料,原理是: 在Spring Boot 2.2.X以后使用import org.junit.jupiter.api.Test Junit5 在Spring Boot 2.2.x之前使用import org.junit.Test Junit4 阅读全文
posted @ 2021-11-08 14:11 哩个啷个波 阅读(1200) 评论(0) 推荐(1)