@Repository注解和@Mapper注解区别

@Reponsitory注解

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

@Mapper注解

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

我会写代码+代码改变世界=我会改变世界! 为什么要改变世界? 如果无法改变世界,那么,世界就会改变我......
原文地址:https://www.cnblogs.com/chougoushi/p/13434135.html