File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
spring-mybatis/src/main/resources/com/hmkcode/spring/mybatis/mapper Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <!DOCTYPE mapper
3- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
2+ <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
53
64<mapper namespace =" com.hmkcode.spring.mybatis.mapper.Mapper" >
75 <resultMap type =" com.hmkcode.spring.mybatis.vo.Person" id =" Person" >
8- <result property = " id " column =" id" />
9- <result property =" name " column =" name" />
6+ <id column = " ID " property =" id" />
7+ <result property =" NAME " column =" name" />
108 </resultMap >
119
1210 <select id =" selectAllPerson" resultMap =" Person" >
13- SELECT * FROM person;
11+ SELECT * FROM person
1412 </select >
15- </mapper >
13+ </mapper >
You can’t perform that action at this time.
0 commit comments