2 Commits
820213a42d
...
338f5edbd5
Author | SHA1 | Message | Date |
---|---|---|---|
|
338f5edbd5 |
Merge branch 'milestone-20250723-wwl' into jihaipeng/feature-20250714184358-抽奖众筹
|
4 weeks ago |
|
2de97be967 |
区分测试正式环境
|
4 weeks ago |
5 changed files with 117 additions and 54 deletions
-
8lottery-system/lottery-service/src/main/java/com/lottery/admin/service/Impl/AdminUserServiceImpl.java
-
19lottery-system/lottery-service/src/main/java/com/lottery/admin/service/Impl/FundingServiceImpl.java
-
35lottery-system/lottery-service/src/main/resources/application-dev.yml
-
36lottery-system/lottery-service/src/main/resources/application-prod.yml
-
73lottery-system/lottery-service/src/main/resources/application.yml
@ -0,0 +1,35 @@ |
|||
spring: |
|||
config: |
|||
activate: |
|||
on-profile: dev |
|||
|
|||
# ========== 数据源配置 (MySQL) ========== |
|||
datasource: |
|||
url: jdbc:mysql://39.101.133.168:3306/link?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai |
|||
username: link |
|||
password: tEhdERkaGprEA7nT |
|||
driver-class-name: com.mysql.cj.jdbc.Driver |
|||
|
|||
hikari: |
|||
maximum-pool-size: 20 # 默认一般是 10,根据并发量调整 |
|||
connection-timeout: 30000 # 连接超时时间(毫秒),默认 30s |
|||
idle-timeout: 600000 # 空闲连接超时时间(默认 10 分钟) |
|||
max-lifetime: 1800000 # 连接最大生命周期(默认 30 分钟) |
|||
leak-detection-threshold: 5000 # 连接泄漏检测(毫秒,建议 5s) |
|||
|
|||
# ========== Redis 配置 ========== |
|||
redis: |
|||
host: 39.98.127.73 |
|||
port: 7001 |
|||
password: 2TOVfFeJ0pyi9Wtj |
|||
database: 1 # 默认DB索引 |
|||
jedis: |
|||
pool: |
|||
max-active: 100 # 最大连接数 |
|||
max-wait: 300 # 最大等待时间 |
|||
max-idle: 20 # 最大空闲连接 |
|||
min-idle: 10 # 最小空闲连接 |
|||
|
|||
|
|||
|
|||
|
@ -0,0 +1,36 @@ |
|||
spring: |
|||
config: |
|||
activate: |
|||
on-profile: prod |
|||
|
|||
# ========== 数据源配置 (MySQL) ========== |
|||
datasource: |
|||
url: jdbc:mysql://18.143.76.3:3306/activty?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai |
|||
username: activty |
|||
password: LnAcwpp5ayps5xnc |
|||
driver-class-name: com.mysql.cj.jdbc.Driver |
|||
|
|||
hikari: |
|||
maximum-pool-size: 20 # 默认一般是 10,根据并发量调整 |
|||
connection-timeout: 30000 # 连接超时时间(毫秒),默认 30s |
|||
idle-timeout: 600000 # 空闲连接超时时间(默认 10 分钟) |
|||
max-lifetime: 1800000 # 连接最大生命周期(默认 30 分钟) |
|||
leak-detection-threshold: 5000 # 连接泄漏检测(毫秒,建议 5s) |
|||
|
|||
# ========== Redis 配置 ========== |
|||
redis: |
|||
host: 18.143.76.3 |
|||
port: 10703 |
|||
password: Ngc0FYUTA6h3wC5J |
|||
database: 8 # 默认DB索引 |
|||
jedis: |
|||
pool: |
|||
max-active: 100 # 最大连接数 |
|||
max-wait: 300 # 最大等待时间 |
|||
max-idle: 20 # 最大空闲连接 |
|||
min-idle: 10 # 最小空闲连接 |
|||
|
|||
|
|||
|
|||
|
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue