1. 다운로드
Mybatis 3.4.6 버전 jar 파일 다운로드
↓
https://mvnrepository.com/artifact/org.mybatis/mybatis/3.4.6
Mybatis-spring jar 다운로드
↓
https://mvnrepository.com/artifact/org.mybatis/mybatis-spring/1.3.2
mybatis 연동
↓
https://techhan.github.io/study/spring-07/
[spring] MyBatis 연동하기
코드로 배우는 스프링 웹 프로젝트
techhan.github.io
2. 의존성 추가
프로젝트 내 pom.xml 파일 라이브러리 추가
<!-- Spring JDBC -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${org.springframework-version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mybatis/mybatis -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.4.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mybatis/mybatis-spring -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>1.3.2</version>
</dependency>
'Backend > 기타' 카테고리의 다른 글
cvc-id.3: a field of identity constraint 'web-app-filter-name-uniqueness' matched element 'web-app', but this element does not have a simple (0) | 2023.05.17 |
---|---|
spring 에러 : resource specification not allowed here for source level below 1.7 (0) | 2023.05.16 |
의존성 주입이란? (0) | 2023.05.15 |
pom.xml 파일 수정 자세한 설명 (0) | 2023.05.15 |
JAVA 버전에 대한 궁금증 11, 1.6, 1.8 (0) | 2023.05.15 |