Files
CN_Product/event_smart/src/main/resources/application-prod.yml
2025-11-11 11:13:55 +08:00

71 lines
2.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
port: 18093
spring:
application:
name: event_smart
datasource:
dynamic:
primary: master
strict: false # 是否严格匹配数据源默认false
druid: # 如果使用Druid连接池
validation-query: SELECT 1 FROM DUAL # 达梦专用校验SQL
initial-size: 10
# 初始化大小,最小,最大
min-idle: 20
maxActive: 500
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
testWhileIdle: true
testOnBorrow: true
testOnReturn: false
# 打开PSCache并且指定每个连接上PSCache的大小
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
datasource:
master:
url: jdbc:oracle:thin:@192.168.10.34:11521:pqsbase
username: pqsadmin
password: Pqsadmin_123
driver-class-name: oracle.jdbc.OracleDriver
# salve:
# driver-class-name: dm.jdbc.driver.DmDriver
# url: jdbc:dm://192.168.1.21:5236/PQSADMIN?useUnicode=true&characterEncoding=utf-8
# username: PQSADMINLN
# password: Pqsadmin123
redis:
database: 10
host: localhost
port: 16379
password: "Pqsadmin@#1qaz"
timeout: 5000
jedis:
pool:
max-active: 20
max-wait: 8000
max-idle: 8
min-idle: 2
test-on-borrow: true # 借出连接时验证
test-on-return: true # 归还连接时验证
test-while-idle: true # 空闲时验证
smsServer:
info: http://22.33.194.49:18095
netInfo: http://20.33.234.143:18095
account: xbjbpt
password: ihS2b73v
aliyun:
oss:
endpoint: http://oss-bj-yz-a.ops.sgmc.sgcc.com.cn/
accessKeyId: LKIyxAYe0yI8EqL8
accessKeySecret: H2UgWI6RdacGGGJAxLsTNj8Qa4oX2e
bucketName: sjzt-fjghsjcc-pro