摘要: .1)分析mybatis的架构(四层架构) 1.接口层(广义接口) 1.1 增加接口方法 删除 增加 修改 查询 各种直接使用的配置方法 2.数据处理层 2.1 列如select * from student where name=#{} and age=#{} 2.1.1 首先处理参数 2.1.2 阅读全文
posted @ 2020-03-11 13:35 何邦柱 阅读(168) 评论(1) 推荐(0) 编辑
摘要: .1)有这几种针对模糊查询的方式 1.${} 1.1 使用如下 <if test="stuName!=null and stuName!=''">and stuName like '%${stuName}%'</if> 1.1.1 这种方法时不推荐使用的 安全隐患问题 2.传值时,直接传%xxx% 阅读全文
posted @ 2020-03-11 13:02 何邦柱 阅读(263) 评论(1) 推荐(1) 编辑
摘要: .1)trim标签的使用 1.使用trim处理查询和修改操作 <!--查询操作处理--> <select id="queryStudentByNoWithONGL" resultType="Student" parameterType="student"> select * from student 阅读全文
posted @ 2020-03-11 13:00 何邦柱 阅读(203) 评论(1) 推荐(1) 编辑