bootstrap.yml 5.3 KB

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