//마이바티스 라이브러리
implementation "org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.0"
<?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 태그는 sql을 매핑할때 사용하는 태그
nmaespace 속성에는 사용할 인터페이스의 풀 패키지경로 + 인터페이스이름
-->
<mapper namespace="com.spring.webmvc.springmvc.chap02.repository.ScoreMapper">
</mapper>
== 조회 하기 SELECT문
--- 단일 컴럼 조회
--- 다중 컬럼 조회
★ resultMap type 에는 도메인 패키지 + 클래스명
'Spring' 카테고리의 다른 글
[@MyBatis] 검색 기능 만들기 22.07.20 - #2# [10일차] (0) | 2022.07.21 |
---|---|
[@MyBatis] 검색 기능 만들기 22.07.20 - #1# [10일차] (0) | 2022.07.20 |
■□ # 페이징 처리- _10일차 JdbcTemplate 마무리 (0) | 2022.07.20 |
■□ # 페이징 처리- 서비스-컨트롤러- jsp 마무리 [게시판 만들기_쌤이랑 실습] _9일차 (0) | 2022.07.19 |
■□ # 페이징 처리- 페이지 번호 배치 _ jsp / 부트스트랩 활용 [게시판 만들기_쌤이랑 실습] _9일차 (0) | 2022.07.19 |