Skip to content

Commit

Permalink
Bump mysql-connector-j version for MySQL caching_sha2_password support
Browse files Browse the repository at this point in the history
  • Loading branch information
katsumag committed Jul 27, 2024
1 parent c7984de commit 6d4f84c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion url-shortener/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies {
// DB
// transitively includes HikariCP, Hibernate, Spring JPA & ORM
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("com.mysql:mysql-connector-j:8.0.32")
implementation("com.mysql:mysql-connector-j:8.2.0")

// Test
testImplementation("org.springframework.boot:spring-boot-starter-test")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
spring:
profiles: development

config:
activate:
on-profile: development
import: optional:secrets.yaml

datasource:
url: jdbc:mysql://localhost:3306/osable
username: dev

eureka:
client:
Expand Down
5 changes: 4 additions & 1 deletion url-shortener/src/main/resources/application-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ eureka:

# env:
# spring.datasource.username
# spring.datasource.password
# SPRING_DATASOURCE_USERNAME

# spring.datasource.password
# SPRING_DATASOURCE_PASSWORD
5 changes: 4 additions & 1 deletion url-shortener/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
spring:
profiles: development, production

config:
activate:
on-profile: development, production

application:
name: url-shortener
Expand Down

0 comments on commit 6d4f84c

Please sign in to comment.