mybatis
cuyun11
这个作者很懒,什么都没留下…
展开
-
Mybatis Generator不生成example
generatorConfig.xml <table tableName="user" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="原创 2018-09-03 07:25:54 · 2240 阅读 · 0 评论 -
mybatis and,or复合查询
要查询的sql: select * from user where name = ? and (age=? or city=?); 方法1:不使用Example查询 直接在usermapper.xml中修改sql 方法2:使用Example查询 sql可转换成 select * from user where (name = ? and age=?) or (name=? and...原创 2018-09-03 07:39:42 · 30456 阅读 · 2 评论