반응형
250x250
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
- node
- codedeploy
- Python
- AWS CI/CD 구축하기
- JavaScript
- aws cicd
- java bigdecimal
- COALESCE
- Jenkins
- Spring Error
- bootstrap
- 도커
- VPN
- SQL
- kubeflow
- aws
- IntelliJ
- Flux
- chart.js
- Spring
- PostgreSQL
- chartjs
- codedeploy error
- codepipeline
- codebuild
- openlens
- Airflow
- docker
- redis
- Kafka
Archives
- Today
- Total
Small Asteroid Blog
spring boot db 연결 본문
728x90
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
728x90
반응형
'백엔드 > 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 |