| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- server:
- port: 7002
- spring:
- application:
- name: oauth-server
- cloud:
- nacos:
- config:
- server-addr: 124.71.26.125:8848
- discovery:
- server-addr: 124.71.26.125:8848
- namespace: iboss-dev
- datasource:
- driver-class-name: org.postgresql.Driver
- url: jdbc:postgresql://dkdev.dkiboss.com:15000/dkic_dev_a0
- username: dkic_a
- 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: dk
- zipkin:
- base-url: http://s.dev01.dkiboss.com:9411/
- discovery-client-enabled: false
- sleuth:
- sampler:
- probability: 1
- logback:
- file: D:\data\DK_MES\${spring.application.name}
- feign:
- sentinel:
- enabled: true
- client:
- config:
- default:
- connectTimeout: 60000
- readTimeout: 60000
- mybatis-plus:
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- 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
- mybatis:
- config-location: classpath:mybatis-config.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=
- upload:
- # server: http://192.168.0.84:8080
- server: https://s.dev01.dkiboss.com:7000/api/file
- path: D:/upload
- 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:
- # 单点登录是否开启
- single-sign-on: false
- uploadPath: ''
- printTemplatePath : ''
- excel-folder: D:\data\DK_MES\excel\
- aes-key: b6f64c1001b04b9f
- client-app-id: 48849faf-8bbb-4a29-9548-0ba1c3df963f
|