摘要: mapper 测试 问题: 阅读全文
posted @ 2021-06-07 13:40 聖凯 阅读(23) 评论(0) 推荐(0)
摘要: 一、性能优化 1、属性properties 2、类型别名typeAliases 2.1、给每一个实体类取别名 2.2、扫描一个包 注意:2.1可以自己取别名;2.2默认会使用 Bean 的首字母小写的非限定类名来作为它的别名,如果要想自己起别名,需要在实体类上面添加注解 3、设置settings 看 阅读全文
posted @ 2021-06-07 13:37 聖凯 阅读(50) 评论(0) 推荐(0)
摘要: 1、delete from 表名 2、truncate table 表名 删除表中所有行时,建议用2,效率更高。 阅读全文
posted @ 2021-06-07 10:01 聖凯 阅读(332) 评论(0) 推荐(0)