
mybatis
停止使用此论坛
转到博客园!
展开
-
使用Mybatis-Generator自动生成Dao、entity、Mapping教程
eclipse版本1.给你的ide下载这个插件,并确定成功可用。具体百度 (eclipse直接搜索安装就行) 2.建议建立一个新的maven项目,然后生成的文件直接移过去。如图: 3.pom配置文件 加依赖呗<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLS原创 2017-09-23 14:56:25 · 1719 阅读 · 0 评论 -
mybatis小坑总结帖(不定时更新)
mapper.xml在使用 <if test="status != null">判断时候 如果传的Integer参数的值是0的话 会判为空!!! 所以写成 <if test="status != null and status != '' or status == 0"> foreach foreach 用于处理集合,比如批量插入、批量查询条件等情况,支持 List...原创 2018-02-05 14:32:19 · 237 阅读 · 0 评论