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

@Mapper注解

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

相关文章: