wuheng 2 년 전
부모
커밋
6e3d27503e
4개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. BIN
      day04/Maven&MyBatis.pdf
  2. BIN
      day04/Maven-day04.pdf
  3. 1 0
      day04/pom.xml
  4. 0 4
      day04/src/main/resources/UserMapper.xml

BIN
day04/Maven&MyBatis.pdf


BIN
day04/Maven-day04.pdf


+ 1 - 0
day04/pom.xml

@@ -50,6 +50,7 @@
             <artifactId>mybatis</artifactId>
             <version>3.5.5</version>
         </dependency>
+
     </dependencies>
 
 

+ 0 - 4
day04/src/main/resources/UserMapper.xml

@@ -1,11 +1,9 @@
 <?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">
 <mapper namespace="com.lovecoding.test.dao.UserMapper">
-
     <select id="selectUser" resultType="com.lovecoding.test.pojo.User" >
         SELECT * FROM `tb_user`;
     </select>
-
     <select id="selectUserByone" resultType="com.lovecoding.test.pojo.User" >
         SELECT * FROM `tb_user` Limit 1;
     </select>
@@ -15,6 +13,4 @@
     <select id="selectUserByIdandName" resultType="com.lovecoding.test.pojo.User">
         SELECT * FROM `tb_user` WHERE id = #{id} AND username = #{name} Limit 1;
     </select>
-
-
 </mapper>