Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- mysql error
- springboot
- 도커파일
- map is not a function
- react map error
- ps
- spring framework
- Access denied for user ''@'localhost'
- jar deploy
- docker container
- sts
- sudo
- jar배포
- 파일 시스템
- mac mariadb
- jdk
- root
- springboot jar
- Dockerfile
- mysql
- Docker
- join
- Oracle
- systemd
- brew install mariadb
- 도커
- install
- 설치
- 관리
- DB
Archives
- Today
- Total
Yoon.s
[MyBatis] 스프링에서 mybatis 사용하기 본문
스프링에서 Mybatis를 사용하려면 라이브러리가 필요합니다.
Maven를 이용하여 스프링의 라이브러리를 관리하고 있다면 라이브러리를 pom.xml에 추가하기만 하면 됩니다.
1. mvnrepository에 접속
- mybatis
- mybatis-spring
2. 해당 라이브러리를 입력
3. 원하는 버전을 클릭해줍니다.
4. Maven 안에 있는 의존성을 복사해줍니다!!
5. 자신의 프로젝트의 pom.xml에 <dependencies></dependencies> 안에 추가 해준다
<!-- https://mvnrepository.com/artifact/org.mybatis/mybatis -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.5.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mybatis/mybatis-spring -->
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>2.0.5</version>
</dependency>
'백 > Spring' 카테고리의 다른 글
[Spring Boot] 스프링부트 시작하기 (0) | 2020.09.14 |
---|---|
[Servlet] 서블릿과 JSP 시작하기 (0) | 2020.09.11 |
[Spring Framework] 자바 jUnit 사용하기 (0) | 2020.09.07 |
[Spring Framework] STS에서 스프링 프레임워크 사용하기 (0) | 2020.09.07 |
[Spring Framework] 외부 파일 import (0) | 2020.09.07 |
Comments