随笔分类 -  springboot

摘要:SpringBootTest如何测试? 1.@RunWith(SpringRunner.class):让自动注入的注解生效 2.其次是测试类要和该项目下的启动类的目录保持一致。 package com.wxy; import com.wxy.config; import org.junit.Test 阅读全文
posted @ 2022-05-28 22:25 WXY_WXY 阅读(1555) 评论(0) 推荐(0) 编辑