Skip to content

Commit 6d4f84c

Browse files
committed
Bump mysql-connector-j version for MySQL caching_sha2_password support
1 parent c7984de commit 6d4f84c

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

url-shortener/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies {
3434
// DB
3535
// transitively includes HikariCP, Hibernate, Spring JPA & ORM
3636
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
37-
implementation("com.mysql:mysql-connector-j:8.0.32")
37+
implementation("com.mysql:mysql-connector-j:8.2.0")
3838

3939
// Test
4040
testImplementation("org.springframework.boot:spring-boot-starter-test")

url-shortener/src/main/resources/application-development.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
spring:
2-
profiles: development
32

43
config:
4+
activate:
5+
on-profile: development
56
import: optional:secrets.yaml
67

78
datasource:
89
url: jdbc:mysql://localhost:3306/osable
10+
username: dev
911

1012
eureka:
1113
client:

url-shortener/src/main/resources/application-production.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ eureka:
1313

1414
# env:
1515
# spring.datasource.username
16-
# spring.datasource.password
16+
# SPRING_DATASOURCE_USERNAME
17+
18+
# spring.datasource.password
19+
# SPRING_DATASOURCE_PASSWORD

url-shortener/src/main/resources/application.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
spring:
2-
profiles: development, production
2+
3+
config:
4+
activate:
5+
on-profile: development, production
36

47
application:
58
name: url-shortener

0 commit comments

Comments
 (0)