1.在每个Mapper文件上加@Mapper注解
2.在包含@SpringBootApplication注解的类上加@MapperScan注解
@MapperScan(“tju.SpringBootMyBatis.mapper”)
SpringBoot: MyBatis Mapper
阅读 62
2022-07-27
1.在每个Mapper文件上加@Mapper注解
2.在包含@SpringBootApplication注解的类上加@MapperScan注解
@MapperScan(“tju.SpringBootMyBatis.mapper”)
相关推荐
精彩评论(0)