2021年9月17日
摘要: 原理 阅读全文
posted @ 2021-09-17 10:20 格物致知_Tony 阅读(96) 评论(0) 推荐(0)
摘要: 一、简单类型与复杂类型 1、三个类型 User类: @Table(name = "table_user")public class User { @Id private Integer userId; private String userName; private Address address; 阅读全文
posted @ 2021-09-17 10:19 格物致知_Tony 阅读(226) 评论(0) 推荐(0)
摘要: 官方文档:https://github.com/abel533/Mapper/wiki/3.config 阅读全文
posted @ 2021-09-17 10:19 格物致知_Tony 阅读(58) 评论(0) 推荐(0)
摘要: 一、开启二级缓存 1、在 MyBatis 的配置文件中开启二级缓存 <settings> <setting name="cacheEnabled" value="true"/> </settings> 2、在使用的 Mapper 接口上面添加注解 @CacheNamespace @CacheName 阅读全文
posted @ 2021-09-17 10:18 格物致知_Tony 阅读(102) 评论(0) 推荐(0)