xml映射文件中SQL复用
定义
<sql id="userColumns">复用的sql语句</sql>
使用
<!--sql语句中--> <include refid = "引用包.userColumns"></include>
其他
-
select / 投影
-
mybatis -> resultMap -> id -> jdbcType = "INTEGER"
-
resultMap 自动映射 autoMapping= "true" (默认为fals
-
) ;sql名字与对象名相同
-