2018年4月16日

Mybatis为实体类定义别名typeAliases

摘要: 以新增一个用户为例子,原UserMapper.xml配置如下: 注:parameterType="main.User",main.User为包名+类名 方法一、单独定义别名 例子:为main.User类定义别名_User (1)在conf.xml中加入 (2)修改UserMapper.xml如下: 阅读全文

posted @ 2018-04-16 09:09 pjlhf 阅读(594) 评论(0) 推荐(0) 编辑

导航