| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- server:
- port: 7002
- spring:
- application:
- name: oauth-server
- profiles:
- active: @environment@
- cloud:
- nacos:
- config:
- server-addr: 124.71.26.125:8848
- discovery:
- server-addr: 124.71.26.125:8848
- ip: 124.71.26.125 #默认是局域网ip,固定为外网ip
- namespace: iboss-dev
- datasource:
- driver-class-name: org.postgresql.Driver
- url: jdbc:postgresql://s.dev01.dkiboss.com:15000/dkic_dev_a0
- username: dkic_sp
- password: dk
- type: com.alibaba.druid.pool.DruidDataSource
- druid:
- initial-size: 10 # 初始化时建立物理连接的个数。初始化发生在显示调用init方法,或者第一次getConnection时
- max-active: 150 # 最大连接池连接数量,最大活跃连接数
- min-idle: 10 # 最小连接池连接数量,最小空闲数量
- max-wait: 300000 # 获取连接时最大等待时间,单位毫秒
- # 是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭。
- pool-prepared-statements: false
- # 指定每个连接上PSCache的大小
- # max-pool-prepared-statement-per-connection-size: 20
- # 和上面的等价
- # max-open-prepared-statements:
- # 指定检测连接sql,如果是null,会影响testWhileIdle、testOnBorrow、testOnReturn失效,如果底层代码use-ping-method是true,默认使用ping
- validation-query: SELECT 1
- validation-query-timeout: 500
- # 申请连接时会使用validationQuery检测连接是否有效,true会降低性能,如果是true,并且检测到连接已关闭,会获取其它的可用的连接
- test-on-borrow: false
- # 归还连接时会使用validationQuery检测连接是否有效,true会降低性能,如果是true,并且检测到连接已关闭,会获取其它的可用的连接,放回数据库线程池
- test-on-return: false
- # 建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果此连接空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
- test-while-idle: true
- # 1)配合testWhileIdle=true时使用,如果当前jdbc使用间隔大于timeBetweenEvictionRunsMillis配置的空闲连接过期时间,执行validationQuery检测连接是否有效。
- # 数据库会主动超时并断开连接,因此建议timeBetweenEvictionRunsMillis小于数据库的连接主动断开时间(如mysql的wait_timeout和interactive_timeout)
- # 2)配置间隔多久才进行一次检测,Destroy线程检测需要关闭的空闲连接的时间,单位是毫秒
- time-between-eviction-runs-millis: 55000
- # 配置一个连接在池中最小生存的时间,单位是毫秒
- min-evictable-idle-time-millis: 30000
- # max-evictable-idle-time-millis:
- # 通过connectProperties属性来打开mergeSql功能;记录慢SQL
- connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
- filters: slf4j #sql文不允许写#注释,只可以在xml中写 <!-- -->注释
- stat-view-servlet:
- enabled: true
- login-username: dongke
- login-password: dongke
- url-pattern: /druid/*
- reset-enable: false
- web-stat-filter:
- exclusions: "*.js,*.gif,*.jpg,*.css,/druid/*"
- redis:
- host: s.dev01.dkiboss.com
- port: 14000
- password: Tf%JL!vd7R%j3x&e
- logback:
- file: /data/java_project/dkic/logs
- feign:
- sentinel:
- enabled: true
- client:
- config:
- default:
- connectTimeout: 60000
- readTimeout: 60000
- mybatis-plus:
- configuration:
- # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
- map-underscore-to-camel-case: true
- type-aliases-package: com.dk.oauth.dto,com.dk.common.infrastructure.handler #类型转换器包名
- mapper-locations: classpath:/mapper/**/*Mapper.xml,com/hegii/scrm/common/mapper/opinfo/*.xml
- swagger:
- enabled: true
- wx:
- # 小程序的openid的接口
- code2Session: https://api.weixin.qq.com/sns/jscode2session?
- # 小程序的appid
- appId: wxe27c8f5249b7aeab
- # 小程序的appSecret
- appSecret: 9bd0efa102f148ff4ca09a1152310555
- accessToken: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&
- qrcodeCreate: https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=
- showQrCode: https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=
- offiAccountAppId: wx6bb9335b534f7b28
- offiAccountAppSecret: 78a99837c113756599d1748b813ca698
- unlimitedQRCode: https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=
- # 公众号发送消息的api-对应获取token
- token: http://ibossmp.dongkesoft.com:9000/get_access_token
- # 公众号的appid appSecret 东科软件 公众号
- wxPublicAccountAppId: wx6bb9335b534f7b28
- wxPublicAccountAppSecret: 78a99837c113756599d1748b813ca698
- # 公众号可通过本接口来获取账号的关注者列表 231024
- user_public_openid: https://api.weixin.qq.com/cgi-bin/user/get?access_token=
- # 可通过OpenID来获取用户基本信息 获取用户基本信息(包括UnionID机制) 231024
- user_info_public_unionid: https://api.weixin.qq.com/cgi-bin/user/info?access_token=
- # 支付的信息240327 从mdm迁移过来的
- pay:
- # 商户号 微信支付
- mchId: 1669762764
- # 小程序的appid
- appId: wxe27c8f5249b7aeab
- # 小程序的appSecret
- appSecret: 9bd0efa102f148ff4ca09a1152310555
- # 支付密钥
- mchKey: 399e76d7db9511ee9c24fa163eacb119
- # 证书路径
- keyPath: /mnt/cert/2024/05/01/apiclient_cert.p12
- # 小程序支付的回调接口地址
- wechatNotifyUrl: https://s.dev01.dkiboss.com:7000/api/oauth-server/wxapi/basic/wechat/pay/notify/order
- # 小程序退款的回调接口地址
- refundNotifyUrl: https://s.dev01.dkiboss.com:7000/api/oauth-server/wxapi/basic/wechat/pay/refund/order
- upload:
- server: https://s.dev01.dkiboss.com:7000/api/file
- # server: https://ibossmp.dongkesoft.com:7050/file
- path: /data/java_project/dkic/file
- dongke:
- base:
- pojo:
- valid-key: flg_valid #db有效标识
- is-valid: true #表示有效的值
- un-valid: false #表示无效的值
- delete-key: flg_del #db删除标识
- is-delete: true #表示删除的值
- un-delete: false #表示未删除的值
- dynamic-ds:
- ds-key: DS
- ds:
- table-name:
- xxl:
- job:
- admin:
- addresses: http://s.dev01.dkiboss.com:16100
- accessToken:
- executor:
- appname: xxl-job-mini-company-renew
- address:
- ip:
- port: 16121
- logpath: /data/applogs/xxl-job/jobhandler
- logretentiondays: 30
- info:
- renew:
- job-desc: 公司续费
- executo-handler: renew-reminder
- job-group: 2
- server-url: ${xxl.job.admin.addresses}
- # 单点登录是否开启
- single-sign-on: false
- uploadPath: ''
- printTemplatePath : ''
- aes-key: b6f64c1001b04b9f
- client-app-id: 48849faf-8bbb-4a29-9548-0ba1c3df963f
- excel-folder: /data/java_project/dk_mes/mdm-server/excel/
|