mybatis的补充:,和标签的使用,(这里都是用ResultType作为结果集,不用ResultMap,因为结果集都比较简单)
1.标签: Sql中可将重复的sql提取出来,使用时用include引用即可,最终达到sql重用的目的 例如//建立sql片段<sql id="query_user_where"> <if test="id!=null and id!=''"> and id=#{id} </if> <if test="username!=null and u...