- 博客(5)
- 收藏
- 关注
原创 Mybatis--动态SQL
在Web开发中开发人员通常根据需求手动拼接SQL语句,这是一个及其麻烦的工作,而Mybatis提供了对SQL语句进行动态组装的功能,恰能解决这一问题。Mybatis的动态SQL元素与JSTL或XML文本处理器相似,常用< if >、< when >、< otherwise >、< trim >、< where >、< set >、< foreach >和< bind >等元素。 if元素 <!-- if元素
2021-12-04 00:53:57 1103
原创 Mybatis学习-映射器
通过Map接口传递多个参数 在usermapper.xml中加入标签 <select id="seletctUserLike" resultType="tradition_user_package.MyUser" parameterType="map"> select * from user where uname like concat('%',#{uname},'%') and usex=#{usex} </select> 在userdao中加入函数 public List&l
2021-12-03 17:05:32 151
原创 SSM学习-Mybatis开发入门
mybatis管理数据 MyUser类 package tradition_user_package; public class MyUser { private int uid; private String uname,usex; public int getUid() { return uid; } public void setUid(int uid) { this.uid = uid; } public String getUname() { return uname; } public
2021-11-28 09:54:31 168
原创 Early Orders
时间限制:C/C++ 2秒,其他语言4秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目描述 You are given a list of integers x1,x2,…,xnx_1, x_2, \ldots, x_nx1,x2,…,xn and a number k. It is guaranteed that each i from 1 to k appears in the list at le...
2021-03-15 00:01:19 71
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人