摘要:
类型转换器:mybatis中有一些常用的类型转换器,比如把Java中的short类型转换为mysql中的short类型;但是如果现在... 阅读全文
posted @ 2020-11-28 16:57
凸凸大军的一员
阅读(133)
评论(0)
推荐(0)
摘要:
1.抽取之前的UserMapper.xml 2.抽取之后的UserMapper.xml select * f... 阅读全文
posted @ 2020-11-28 15:06
凸凸大军的一员
阅读(206)
评论(0)
推荐(0)
摘要:
foreach UserMapper.xml 测试 @Test public void test1() th... 阅读全文
posted @ 2020-11-28 15:00
凸凸大军的一员
阅读(55)
评论(0)
推荐(0)
摘要:
因为在很多业务逻辑复杂的项目中,往往不是简单的sql语句就能查询出来自己想要的数据,所有mybatis引入了动态sql语句, Use... 阅读全文
posted @ 2020-11-28 14:31
凸凸大军的一员
阅读(77)
评论(0)
推荐(0)
摘要:
1.代理方式开发是主流 2.Mapper接口开发方法只需要编写Mapper接口(相当于Dao接口),然后由Mybatis根据接口创建... 阅读全文
posted @ 2020-11-28 09:39
凸凸大军的一员
阅读(74)
评论(0)
推荐(0)

浙公网安备 33010602011771号