@Repository注解和@Mapper注解区别

@Reponsitory注解

@Reponsitory使用后,在启动类上需要添加@MapperScan("xxx.xxx.xxx.mapper")注解

@Mapper注解

@Mapper注解使用后相当于@Reponsitory加@MapperScan注解,会自动进行配置加载

posted @ 2020-08-04 16:34  Patrick&Star  阅读(3507)  评论(0编辑  收藏  举报