Skip to content

Commit

Permalink
#63 - DB 마이그레이션: MySQL -> PostgreSQL
Browse files Browse the repository at this point in the history
드라이버는 url로 자동 선택되므로 지우는 것이 더 효율적이다.
  • Loading branch information
lmw7414 committed Jan 6, 2023
1 parent 44d288a commit 313a319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies {
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'mysql:mysql-connector-java'
runtimeOnly 'org.postgresql:postgresql'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
annotationProcessor 'org.projectlombok:lombok'
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ logging:

spring:
datasource:
url: jdbc:mysql://localhost:3306/board
url: jdbc:postgresql://localhost:5432/board
username: lmw
password: 74147414l
driver-class-name: com.mysql.cj.jdbc.Driver
# url: jdbc:h2:mem:testdb
# username: sa
# driver-class-name: org.h2.Driver
Expand Down

0 comments on commit 313a319

Please sign in to comment.