摘要: springboot测试类时注入对象为NullPointerException 解决方法: 正常来说测试类加上以下配置就可以正常@Test测试,但@SpringBootTest(classes = BootApplication.class)中的classes的值要纸箱启动类的才可以正常注入属性。也 阅读全文
posted @ 2021-02-03 18:17 乖怪丶 阅读(2131) 评论(0) 推荐(0) 编辑
……