MyBatis配置文件解析
来源:互联网 发布:淘宝仿网红家衣服质量 编辑:程序博客网 时间:2024/06/17 02:31
映射配置:
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!-- namespace命名空间,防止sql语句的id重名 --> <!-- paramterType指sql语句参数类型 --> <!-- resultType指结果类型 --> <mapper namespace="entity.userMapper"><select id="selectUser" resultType="entity.User">select * from user whereid=#{id}</select><!-- resultType返回值结果类型 --><!-- <insert id="addUser" resultType="int"> --><!-- 提交参数类型:paramterType="entity.User" --><insert id="addUser" parameterType="entity.User"><!-- name,pwd一定是传进来参数的属性 -->insert into user(name,pwd,id) values(#{name},#{pwd},#{id});</insert><select id="selectUserPwd" resultType="entity.User">select * from user wherepwd=#{pwd}</select><update id="updateUser" parameterType="entity.User">update user set name=#{name},pwd=#{pwd} where id=#{id}</update><delete id="deleteUser" >delete from user where id=#{id}</delete></mapper>
0 0
- MyBatis的配置文件解析
- mybatis generator 配置文件解析
- MyBatis配置文件解析
- MyBatis配置文件属性解析
- MyBatis 全局配置文件解析
- MyBatis配置文件全解析
- mybatis主配置文件解析
- mybatis generator tools配置文件解析
- mybatis generator tools配置文件解析
- Mybatis之XML配置文件解析
- mybatis配置文件(mapper)属性解析
- 【Mybatis】sqlMapConfig.xml配置文件解析
- Mybatis配置文件解析过程详解
- Mybatis入门以及配置文件解析
- (一)MyBatis源码解析之配置文件
- (二)MyBatis源码解析之配置文件
- (三)MyBatis源码解析之配置文件
- mybatis-Config.xml全局配置文件解析
- 猴子吃桃子问题
- 团体程序设计天梯赛L2-023 图着色问题
- 面向对象几点注意
- web文件上传大小限制
- BZOJ4584: [Apio2016]赛艇 DP
- MyBatis配置文件解析
- 山东省第二届ACM省赛 The Android University ACM Team Selection Contest
- HOG特征计算
- hdu 5128 The E-pang Palace(计算几何,暴力枚举)
- Seven Segment Display(数位dp)
- Linux Mint安装输入法
- python try/except/finally
- MATLAB的取整函数与取余函数
- 浅谈java中的hashCode方法