@Mapper和@Repository注解的区别

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

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

猜你喜欢

转载自blog.csdn.net/m0_51082307/article/details/114379940