반응형
spring boot mybatis multi datasource
-
[spring boot] mybatis 연동 및 설정Spring/spring boot 및 기타 2021. 6. 23. 17:52
spring boot 에서 mybatis 를 연동하는 법을 해보자 pom.xml org.mybatis.spring.boot mybatis-spring-boot-starter 2.2.0 일단 pom.xml 에 mybatis 라이브러리부터 추가하자. dbms 에 맞는 driver 는 추가됐다고 가정하고 진행한다. 사용버젼 표 아래 표에 맞게 version 명시하면 된다. MyBatis-Spring-Boot-Starter MyBatis-Spring Spring Boot Java 2.2 2.0 (need 2.0.6+ for enable all features) 2.5 or higher 8 or higher 2.1 2.0 (need 2.0.6+ for enable all features) 2.1 - 2.4 8 o..