@Repository注解和@Mapper注解区别

@Reponsitory注解

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

@Mapper注解

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

相关文章
相关标签/搜索