Skip to content

Commit 79f6aef

Browse files
committed
[FIX] SpringBootMybatis
- config 제거 - mapper-location 추가
1 parent 6a05fc5 commit 79f6aef

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
mybatis.config-location=classpath:mybatis-config.xml
1+
mybatis.mapper-locations=classpath:mapper/*.xml

SpringBootMybatis/src/main/resources/mapper/UserMapper.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
INSERT INTO USER VALUES (#{idx}, #{name}, #{local})
99
</insert>
1010

11-
<select id="findByIdx" resultType="User">
11+
<select id="findByIdx" resultType="com.tistory.heowc.domain.User">
1212
SELECT * FROM USER WHERE IDX = #{idx}
1313
</select>
1414

SpringBootMybatis/src/main/resources/mybatis-config.xml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)