bootstrap.yml 7.0 KB

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