bootstrap.yml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. server:
  2. port: 7002
  3. spring:
  4. application:
  5. name: oauth-server
  6. profiles:
  7. active: @environment@
  8. cloud:
  9. nacos:
  10. config:
  11. server-addr: 124.71.26.125:8848
  12. discovery:
  13. server-addr: 124.71.26.125:8848
  14. namespace: iboss-dev
  15. datasource:
  16. driver-class-name: org.postgresql.Driver
  17. url: jdbc:postgresql://dkdev.dkiboss.com:15000/dkic_dev_a0
  18. username: dkic_sp
  19. password: dk
  20. type: com.alibaba.druid.pool.DruidDataSource
  21. druid:
  22. initial-size: 10 # 初始化时建立物理连接的个数。初始化发生在显示调用init方法,或者第一次getConnection时
  23. max-active: 150 # 最大连接池连接数量,最大活跃连接数
  24. min-idle: 10 # 最小连接池连接数量,最小空闲数量
  25. max-wait: 300000 # 获取连接时最大等待时间,单位毫秒
  26. # 是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭。
  27. pool-prepared-statements: false
  28. # 指定每个连接上PSCache的大小
  29. # max-pool-prepared-statement-per-connection-size: 20
  30. # 和上面的等价
  31. # max-open-prepared-statements:
  32. # 指定检测连接sql,如果是null,会影响testWhileIdle、testOnBorrow、testOnReturn失效,如果底层代码use-ping-method是true,默认使用ping
  33. validation-query: SELECT 1
  34. validation-query-timeout: 500
  35. # 申请连接时会使用validationQuery检测连接是否有效,true会降低性能,如果是true,并且检测到连接已关闭,会获取其它的可用的连接
  36. test-on-borrow: false
  37. # 归还连接时会使用validationQuery检测连接是否有效,true会降低性能,如果是true,并且检测到连接已关闭,会获取其它的可用的连接,放回数据库线程池
  38. test-on-return: false
  39. # 建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果此连接空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
  40. test-while-idle: true
  41. # 1)配合testWhileIdle=true时使用,如果当前jdbc使用间隔大于timeBetweenEvictionRunsMillis配置的空闲连接过期时间,执行validationQuery检测连接是否有效。
  42. # 数据库会主动超时并断开连接,因此建议timeBetweenEvictionRunsMillis小于数据库的连接主动断开时间(如mysql的wait_timeout和interactive_timeout)
  43. # 2)配置间隔多久才进行一次检测,Destroy线程检测需要关闭的空闲连接的时间,单位是毫秒
  44. time-between-eviction-runs-millis: 55000
  45. # 配置一个连接在池中最小生存的时间,单位是毫秒
  46. min-evictable-idle-time-millis: 30000
  47. # max-evictable-idle-time-millis:
  48. # 通过connectProperties属性来打开mergeSql功能;记录慢SQL
  49. connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  50. filters: slf4j #sql文不允许写#注释,只可以在xml中写 <!-- -->注释
  51. stat-view-servlet:
  52. enabled: true
  53. login-username: dongke
  54. login-password: dongke
  55. url-pattern: /druid/*
  56. reset-enable: false
  57. web-stat-filter:
  58. exclusions: "*.js,*.gif,*.jpg,*.css,/druid/*"
  59. redis:
  60. host: s.dev01.dkiboss.com
  61. port: 14000
  62. password: dk
  63. logback:
  64. file: D:\data\DK_MES\${spring.application.name}
  65. feign:
  66. sentinel:
  67. enabled: true
  68. client:
  69. config:
  70. default:
  71. connectTimeout: 60000
  72. readTimeout: 60000
  73. mybatis-plus:
  74. configuration:
  75. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  76. log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
  77. map-underscore-to-camel-case: true
  78. type-aliases-package: com.dk.oauth.dto,com.dk.common.infrastructure.handler #类型转换器包名
  79. mapper-locations: classpath:/mapper/**/*Mapper.xml,com/hegii/scrm/common/mapper/opinfo/*.xml
  80. swagger:
  81. enabled: true
  82. wx:
  83. # 小程序的openid的接口
  84. code2Session: https://api.weixin.qq.com/sns/jscode2session?
  85. # 小程序的appid
  86. appId: wxe27c8f5249b7aeab
  87. # 小程序的appSecret
  88. appSecret: 9bd0efa102f148ff4ca09a1152310555
  89. accessToken: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&
  90. qrcodeCreate: https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=
  91. showQrCode: https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=
  92. offiAccountAppId: wx6bb9335b534f7b28
  93. offiAccountAppSecret: 78a99837c113756599d1748b813ca698
  94. unlimitedQRCode: https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=
  95. # 公众号发送消息的api-对应获取token
  96. token: http://ibossmp.dongkesoft.com:9000/get_access_token
  97. # 公众号的appid appSecret 东科软件 公众号
  98. wxPublicAccountAppId: wx6bb9335b534f7b28
  99. wxPublicAccountAppSecret: 78a99837c113756599d1748b813ca698
  100. # 公众号可通过本接口来获取账号的关注者列表 231024
  101. user_public_openid: https://api.weixin.qq.com/cgi-bin/user/get?access_token=
  102. # 可通过OpenID来获取用户基本信息 获取用户基本信息(包括UnionID机制) 231024
  103. user_info_public_unionid: https://api.weixin.qq.com/cgi-bin/user/info?access_token=
  104. # 支付的信息240327 从mdm迁移过来的
  105. pay:
  106. # 商户号 微信支付
  107. mchId: 1669762764
  108. # 小程序的appid
  109. appId: wxe27c8f5249b7aeab
  110. # 小程序的appSecret
  111. appSecret: 9bd0efa102f148ff4ca09a1152310555
  112. # 支付密钥
  113. mchKey: 399e76d7db9511ee9c24fa163eacb119
  114. # 证书路径
  115. keyPath: /mnt/cert/2021/05/11/404727f0-e5be-424e-b009-59f1ec8d102e.p12
  116. # 小程序支付的回调接口地址
  117. wechatNotifyUrl: https://s.dev01.dkiboss.com:7000/api/oauth-server/wxapi/basic/wechat/pay/notify/order
  118. # 小程序退款的回调接口地址
  119. refundNotifyUrl: https://s.dev01.dkiboss.com:7000/api/oauth-server/wxapi/basic/wechat/pay/refund/order
  120. upload:
  121. # server: http://192.168.0.84:8080
  122. server: https://s.dev01.dkiboss.com:7000/api/file
  123. path: D:/upload
  124. dongke:
  125. base:
  126. pojo:
  127. valid-key: flg_valid #db有效标识
  128. is-valid: true #表示有效的值
  129. un-valid: false #表示无效的值
  130. delete-key: flg_del #db删除标识
  131. is-delete: true #表示删除的值
  132. un-delete: false #表示未删除的值
  133. dynamic-ds:
  134. ds-key: DS
  135. ds:
  136. table-name:
  137. # 单点登录是否开启
  138. single-sign-on: false
  139. uploadPath: ''
  140. printTemplatePath : ''
  141. excel-folder: D:\data\DK_MES\excel\
  142. aes-key: b6f64c1001b04b9f
  143. client-app-id: 48849faf-8bbb-4a29-9548-0ba1c3df963f