1.在每个Mapper文件上加@Mapper注解
2.在包含@SpringBootApplication注解的类上加@MapperScan注解
@MapperScan(“tju.SpringBootMyBatis.mapper”)
微信扫一扫
1.在每个Mapper文件上加@Mapper注解
2.在包含@SpringBootApplication注解的类上加@MapperScan注解
@MapperScan(“tju.SpringBootMyBatis.mapper”)
相关推荐