application-mysql8.yml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. spring:
  2. datasource:
  3. type: com.alibaba.druid.pool.DruidDataSource
  4. druid:
  5. driver-class-name: com.mysql.cj.jdbc.Driver
  6. url: jdbc:mysql://172.22.45.21:3306/tcwm2.5?useUnicode=true&characterEncoding=utf-8&useSSL=false&rewriteBatchedStatements=true&serverTimezone=CTT&useAffectedRows=true
  7. username: root
  8. password: Chuanghai2024.
  9. initial-size: 10
  10. max-active: 100
  11. min-idle: 10
  12. max-wait: 60000
  13. pool-prepared-statements: true
  14. max-pool-prepared-statement-per-connection-size: 20
  15. time-between-eviction-runs-millis: 60000
  16. min-evictable-idle-time-millis: 100000
  17. #Oracle需要打开注释
  18. #validation-query: SELECT 1 FROM DUAL
  19. test-while-idle: true
  20. test-on-borrow: false
  21. test-on-return: false
  22. stat-view-servlet:
  23. enabled: true
  24. url-pattern: /druid/*
  25. login-username: CH
  26. login-password: CH_2025@.
  27. allow: ""
  28. filter:
  29. stat:
  30. log-slow-sql: true
  31. slow-sql-millis: 1000
  32. merge-sql: false
  33. wall:
  34. config:
  35. multi-statement-allow: true
  36. redis:
  37. host: 172.16.20.108
  38. port: 6379
  39. password: chuanghai_2024.
  40. database: 3
  41. timeout: 5000
  42. jedis:
  43. pool:
  44. enabled: true
  45. max-active: 20
  46. min-idle: 0
  47. max-idle: 10
  48. max-wait: -1
  49. secure-api:
  50. # 开启SecureApi功能,如果为false则其余配置项均不生效
  51. enabled: true
  52. # 开启加解密日志打印,会打印出接口名、加密模式、算法、明文和密文等信息
  53. show-log: true
  54. url-safe: true
  55. # 加密模式,common和session_key可选,session_key是会话密钥模式,用于每次请求都使用不同的密钥,需要前端配合
  56. mode: common
  57. # 加密算法
  58. cipher-algorithm: aes_cbc_pkcs5
  59. # 对称算法用于加解密的密钥,Base64格式,cipher-algorithm选择对称加密算法时配置,也可为空,组件会随机生成一个
  60. key: oURKtBcNU6axnNoebKkuPqkCn6ivhE9qbg9FpeNnfpo=
  61. # 对称算法用于加解密的偏移量,Base64格式,cipher-algorithm选择对称加密算法时配置,也可为空,组件会随机生成一个
  62. iv: eW1xeThJSkprcEZUTGh1Ng==
  63. # 需要加密的接口路径匹配,遵循spring boot拦截器的正则规则,留空或者不配置代表不使用url匹配,只对注解的接口进行解密
  64. encrypt-url:
  65. # 配置了此项,接口有无注解都将进行返回值加密
  66. include-urls: /**
  67. # 即使配置了排除,注解的优先级也高于此项
  68. exclude-urls:
  69. - /captcha.jpg
  70. - /app/wxPay/notifyMp
  71. - /app/wxPay/notify
  72. - /app/wxPay/notifyJsApi
  73. - /app/wxPay/notifyShop
  74. - /app/wxPay/notifyJsApiShop
  75. - /app/wxPay/notifyMpShop
  76. - /pay/open/notify
  77. - /app/new-pay/wechat-pay/notify
  78. - /chatSocket/**
  79. - /websocket/**
  80. - /alioss/**
  81. - /swagger-ui.html
  82. - /v2/api-docs
  83. - /swagger-resources/**
  84. - /webjars/**
  85. - /app/tbindent/droneAirReceiving
  86. - /app/tbindent/droneAirDelivery
  87. - /back/open
  88. # 需要解密的接口路径匹配,遵循spring boot拦截器的正则规则,留空或者不配置代表不使用url匹配,只对注解的接口、参数、字段进行解密
  89. decrypt-url:
  90. # 配置了此项,接口、参数、字段有无注解都将进行解密
  91. include-urls: /**
  92. # 即使配置了排除,注解的优先级也高于此项
  93. exclude-urls:
  94. - /captcha.jpg
  95. - /app/wxPay/notifyMp
  96. - /app/wxPay/notify
  97. - /app/wxPay/notifyJsApi
  98. - /app/wxPay/notifyShop
  99. - /app/wxPay/notifyJsApiShop
  100. - /app/wxPay/notifyMpShop
  101. - /pay/open/notify
  102. - /app/new-pay/wechat-pay/notify
  103. - /chatSocket/**
  104. - /websocket/**
  105. - /alioss/**
  106. - /swagger-ui.html
  107. - /v2/api-docs
  108. - /swagger-resources/**
  109. - /webjars/**
  110. - /back/open
  111. # Date类型日期格式化
  112. date-format: yyyy-MM-dd HH:mm:ss
  113. # LocalDateTime类型日期格式化
  114. local-date-time-format: yyyy-MM-dd HH:mm:ss
  115. mp:
  116. temp: false
  117. sftp:
  118. username: export
  119. password: Waimai2024#
  120. host: 172.16.20.108
  121. port: 22
  122. dynamic:
  123. driver-class-name: com.mysql.cj.jdbc.Driver
  124. url: jdbc:mysql://172.22.45.21:3306/tcwm2.5?useUnicode=true&characterEncoding=utf-8&useSSL=false&rewriteBatchedStatements=true&serverTimezone=CTT&useAffectedRows=true
  125. # url: jdbc:mysql://172.16.20.108:3306/tcwm2.5?useUnicode=true&characterEncoding=utf-8&useSSL=false&rewriteBatchedStatements=true&serverTimezone=CTT
  126. username: root
  127. password: Chuanghai2024.
  128. # password: chuanghai@2024
  129. initial-size: 15
  130. max-active: 100
  131. min-idle: 10
  132. max-wait: 60000
  133. pool-prepared-statements: true
  134. max-pool-prepared-statement-per-connection-size: 20
  135. time-between-eviction-runs-millis: 60000
  136. min-evictable-idle-time-millis: 100000
  137. #Oracle需要打开注释
  138. #validation-query: SELECT 1 FROM DUAL
  139. test-while-idle: true
  140. test-on-borrow: false
  141. test-on-return: false
  142. stat-view-servlet:
  143. enabled: true
  144. url-pattern: /druid/*
  145. #login-username: admin
  146. #login-password: admin
  147. filter:
  148. stat:
  149. log-slow-sql: true
  150. slow-sql-millis: 1000
  151. merge-sql: false
  152. wall:
  153. config:
  154. multi-statement-allow: true
  155. # minio配置
  156. minio:
  157. endpoint: http://172.16.20.105:9000
  158. accessKey: YTDm6Wtjf1q0LbGi2SKK
  159. secretKey: MU1KozgxyknGDPwcKuvCEuhZwL37wbryHOFRW5Xt
  160. bucket: wmfile