마이바티스(mybatis) 프레임워크 설치 및 적용
1. 설치
mybatis3.xx
https://mybatis.org/mybatis-3/ko/getting-started.html




ㄴ 드래그 복사

ㄴ 붙여넣기

ㄴ 이 설정들을 가지고 연결을 하겠다
ㄴ 내부적으로 커넥션 풀이 있다

ㄴ ${} : xml에서의 변수 정의
2. 설정
SqlSessionFactory
- SqlSession 객체 생성
- insert(...)
- delete(...)
- update(...)
List<T> selecList(...)
- T selectOne(...)
3. 적용
4. 동적 SQL
1) if
2) choose, when, otherwise
3) trim, where, set
4) foreach
5) bind