|
@@ -1,8 +1,62 @@
|
|
|
+server:
|
|
|
+ port: 8899
|
|
|
+ undertow:
|
|
|
+ accesslog:
|
|
|
+ dir: .logs
|
|
|
+ enabled: true
|
|
|
+ pattern: common
|
|
|
+ prefix: access_log
|
|
|
+ suffix: log
|
|
|
+ threads:
|
|
|
+ # io线程数,主要执行费阻塞的任务
|
|
|
+ io: 8
|
|
|
+ # 阻塞任务线程池
|
|
|
+ worker: 50
|
|
|
+ # 每块buffer的空间大小,越小的空间被利用越充分
|
|
|
+ buffer-size: 1024
|
|
|
+ # 是否分配的直接内存
|
|
|
+ direct-buffers: true
|
|
|
+
|
|
|
spring:
|
|
|
+ datasource:
|
|
|
+ url: jdbc:mysql://120.79.121.165:3306/rz_hfdb_core?allowMultiQueries=true&useSSL=false&rewriteBatchedStatements=true&zeroDateTimeBehavior=convertToNull
|
|
|
+ username: rz_new_data_channel_user
|
|
|
+ password: xVfuCKIP
|
|
|
+ driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
+ hikari:
|
|
|
+ pool-name: hfdb_core
|
|
|
+ # 连接池最大连接数,默认是10
|
|
|
+ maximum-pool-size: 10
|
|
|
+ # 此属性控制从池返回的连接的默认自动提交行为,默认值:true
|
|
|
+ auto-commit: true
|
|
|
+ # 此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认30分钟
|
|
|
+ max-lifetime: 900000
|
|
|
+ # 数据库连接超时时间,设置为300秒超时
|
|
|
+ connection-timeout: 300000
|
|
|
+ # keepalive time
|
|
|
+ keepalive-time: 60000
|
|
|
+ data:
|
|
|
+ redis:
|
|
|
+ host: 192.168.1.28
|
|
|
+ port: 6379
|
|
|
+ password: twznW28grxzk
|
|
|
+ timeout: 30000
|
|
|
+ database: 2
|
|
|
+ jedis:
|
|
|
+ pool:
|
|
|
+ max-idle: 6 #最大空闲数
|
|
|
+ max-active: 10 #最大连接数
|
|
|
+ min-idle: 2 #最小空闲数
|
|
|
application:
|
|
|
name: smppw-analysis
|
|
|
- profiles:
|
|
|
- active: toc
|
|
|
+
|
|
|
+smppw:
|
|
|
+ data:
|
|
|
+ analysis:
|
|
|
+ py-url: https://pymaster-test.simuwang.com/ # python服务调用地址
|
|
|
+ cache-type: redis # 缓存类型,如果是redis必须配置redis
|
|
|
+ enable-sign: false # 参数签名校验功能是否可用
|
|
|
+ data-source: ${spring.profiles.active}
|
|
|
|
|
|
# mybatis 配置
|
|
|
mybatis:
|