摘要: 关于通用MapperExample使用记录 环境准备 需要集成 mybatis 的 generator 插件,方便自动生成 实体类和 mapper 类,还可以生成xml,不过一般我们都不用 xml baseMapper 需要继承 ExampleMapper 不过只需要继承 Mapper 就可以了,因 阅读全文
posted @ 2020-04-23 17:51 tomingto 阅读(2369) 评论(0) 推荐(1)
摘要: MyBatis中的if....else...表示方法 <choose> <when test=""> //... </when> <otherwise> //... </otherwise> </choose>其中choose为一个整体 when是if otherwise是else 示例: <sel 阅读全文
posted @ 2020-04-23 11:42 tomingto 阅读(1179) 评论(0) 推荐(0)