diff --git a/im-service/src/main/resources/application.yml b/im-service/src/main/resources/application.yml index c5b39d3..cc670bb 100644 --- a/im-service/src/main/resources/application.yml +++ b/im-service/src/main/resources/application.yml @@ -5,10 +5,16 @@ spring: application: name: im-service datasource: - url: jdbc:mysql://localhost:3306/xuqm_im?useSSL=false&serverTimezone=UTC&createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true - username: root - password: root + url: jdbc:mysql://39.107.53.187:3306/xuqm_im?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true + username: xuqm + password: Xuqm@2026 driver-class-name: com.mysql.cj.jdbc.Driver + hikari: + minimum-idle: 5 + maximum-pool-size: 20 + connection-timeout: 30000 + idle-timeout: 300000 + max-lifetime: 900000 jpa: hibernate: ddl-auto: update @@ -18,8 +24,16 @@ spring: dialect: org.hibernate.dialect.MySQLDialect data: redis: - host: localhost + host: redisdev.xuqinmin.com port: 6379 + password: xuqinmin1022 + database: 2 + timeout: 10s + lettuce: + pool: + min-idle: 0 + max-idle: 8 + max-active: 8 jackson: time-zone: UTC serialization: diff --git a/push-service/src/main/resources/application.yml b/push-service/src/main/resources/application.yml index 6d21f43..bc42098 100644 --- a/push-service/src/main/resources/application.yml +++ b/push-service/src/main/resources/application.yml @@ -5,10 +5,16 @@ spring: application: name: push-service datasource: - url: jdbc:mysql://localhost:3306/xuqm_push?useSSL=false&serverTimezone=UTC&createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true - username: root - password: root + url: jdbc:mysql://39.107.53.187:3306/xuqm_push?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true + username: xuqm + password: Xuqm@2026 driver-class-name: com.mysql.cj.jdbc.Driver + hikari: + minimum-idle: 5 + maximum-pool-size: 20 + connection-timeout: 30000 + idle-timeout: 300000 + max-lifetime: 900000 jpa: hibernate: ddl-auto: update diff --git a/tenant-service/src/main/resources/application.yml b/tenant-service/src/main/resources/application.yml index 0e88549..6e3dbc3 100644 --- a/tenant-service/src/main/resources/application.yml +++ b/tenant-service/src/main/resources/application.yml @@ -5,10 +5,16 @@ spring: application: name: tenant-service datasource: - url: jdbc:mysql://localhost:3306/xuqm_tenant?useSSL=false&serverTimezone=UTC&createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true - username: root - password: root + url: jdbc:mysql://39.107.53.187:3306/xuqm_tenant?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true + username: xuqm + password: Xuqm@2026 driver-class-name: com.mysql.cj.jdbc.Driver + hikari: + minimum-idle: 5 + maximum-pool-size: 20 + connection-timeout: 30000 + idle-timeout: 300000 + max-lifetime: 900000 jpa: hibernate: ddl-auto: update @@ -19,9 +25,16 @@ spring: format_sql: true data: redis: - host: localhost + host: redisdev.xuqinmin.com port: 6379 - timeout: 5000ms + password: xuqinmin1022 + database: 1 + timeout: 10s + lettuce: + pool: + min-idle: 0 + max-idle: 8 + max-active: 8 mail: host: smtp.example.com port: 587 diff --git a/update-service/src/main/resources/application.yml b/update-service/src/main/resources/application.yml index c11b7a3..a9969dd 100644 --- a/update-service/src/main/resources/application.yml +++ b/update-service/src/main/resources/application.yml @@ -5,10 +5,16 @@ spring: application: name: update-service datasource: - url: jdbc:mysql://localhost:3306/xuqm_update?useSSL=false&serverTimezone=UTC&createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true - username: root - password: root + url: jdbc:mysql://39.107.53.187:3306/xuqm_update?useUnicode=true&characterEncoding=utf8&useSSL=true&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true + username: xuqm + password: Xuqm@2026 driver-class-name: com.mysql.cj.jdbc.Driver + hikari: + minimum-idle: 5 + maximum-pool-size: 20 + connection-timeout: 30000 + idle-timeout: 300000 + max-lifetime: 900000 jpa: hibernate: ddl-auto: update