일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- log4j2
- database
- Linux
- Kubernetes
- nodejs
- Spring
- Java
- JPA
- gradle
- IntelliJ
- intellijIDEA
- BPMN
- Git
- sapfiorielements
- tibero
- MySQL
- Windows
- react
- springboot
- docker
- useEffect
- JavaScript
- maven
- VSCode
- NCP
- gson
- dbeaver
- LOG4J
- nginx
- mybatis
- Today
- Total
두 손끝의 창조자
mybatis LocalDate, LocalDateTime 사용하기 본문
3.4 버전부터는 자동으로 매핑을 사용할 수 있다. 그 전버전은 타입핸드러를 직접 구현하여 사용해야한다. 구현하는 방법은 다른 사이트 참조.
단, 3.4.4 이하는 mybatis-typehandlers-jsr310 의존성을 추가해줘야 한다. 3.4.5 버전 이후는 포함되어 있다.
mybatis.org/mybatis-3/ko/configuration.html#typeHandlers
MyBatis – 마이바티스 3 | 매퍼 설정
매퍼 설정 마이바티스 XML 설정파일은 다양한 설정과 프로퍼티를 가진다. 문서의 구조는 다음과 같다.: configuration properties 이 설정은 외부에 옮길 수 있다. 자바 프로퍼티 파일 인스턴스에 설정할
mybatis.org
github.com/mybatis/mybatis-3/pull/974
Merge typehandlers-jsr310 into the core. by harawata · Pull Request #974 · mybatis/mybatis-3
typehandlers-jsr310 are for standard Java types and they belong to the core in the first place. We didn't know how to include them in the core without breaking Java 6 compatibility, but we do n...
github.com
Maven
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-typehandlers-jsr310</artifactId>
<version>1.0.2</version>
</dependency>
Gradle
compile("org.mybatis:mybatis-typehandlers-jsr310:1.0.2")