mariadb, mybatis
gradle
// https://mvnrepository.com/artifact/org.mybatis/mybatis
implementation group: 'org.mybatis', name: 'mybatis', version: '3.4.6'
// https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client
implementation group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '2.7.1'
driver 및 연결 정보 설정 추가
spring.datasource.driverClassName=org.mariadb.jdbc.Driver
spring.datasource.url=jdbc:mariadb://localhost:3306/test?characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.username=스키마계정
spring.datasource.password=비밀번호 #mysql
#spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
#spring.datasource.url=jdbc:mysql://localhost:3306/test?characterEncoding=UTF-8&serverTimezone=UTC
반응형
'백엔드 > Spring' 카테고리의 다른 글
ncorrect table definition; there can be only one auto column and it must be defined as a key (0) | 2021.04.19 |
---|---|
[SpringBoot] IntelliJ IDEA :: Cannot resolve class or package 'mysql' (0) | 2021.04.15 |
이클립스 오류 - 프로젝트 폴더가 실행되지 않는경우 (0) | 2021.04.13 |
hashmap / LinkedHashMap 값 출력 (map keyset values) (0) | 2021.04.08 |
[공공데이터 포털 openapi ] INVALID REQUEST PARAMETER ERROR (0) | 2021.04.02 |