junit test 一直报空指针错误(注解的mapper/dao未生效)

解决方法:(增加两行注解)

 

@RunWith(SpringRunner.class)
@SpringBootTest
public class AreaMapperTest {

posted @ 2019-05-04 21:35  老吴的技术知识园  阅读(2625)  评论(0编辑  收藏  举报