application.yml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. #服务器配置
  2. server:
  3. port: 2366
  4. undertow:
  5. # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
  6. io-threads: 16
  7. # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
  8. worker-threads: 400
  9. # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
  10. buffer-size: 1024
  11. # 是否分配的直接内存
  12. direct-buffers: true
  13. spring:
  14. datasource:
  15. driver-class-name: com.mysql.cj.jdbc.Driver
  16. #driver-class-name: org.postgresql.Driver
  17. #driver-class-name: oracle.jdbc.OracleDriver
  18. #driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
  19. druid:
  20. # MySql、PostgreSQL、SqlServer校验
  21. validation-query: select 1
  22. # Oracle校验
  23. #validation-query: select 1 from dual
  24. validation-query-timeout: 2000
  25. initial-size: 5
  26. max-active: 200
  27. min-idle: 5
  28. max-wait: 60000
  29. test-on-borrow: false
  30. test-on-return: false
  31. test-while-idle: true
  32. time-between-eviction-runs-millis: 60000
  33. min-evictable-idle-time-millis: 300000
  34. stat-view-servlet:
  35. enabled: true
  36. login-username: blade
  37. login-password: 1qaz@WSX
  38. web-stat-filter:
  39. enabled: true
  40. url-pattern: /*
  41. exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
  42. session-stat-enable: true
  43. session-stat-max-count: 10
  44. # mybatis
  45. mybatis-plus:
  46. mapper-locations: classpath:org/springblade/**/mapper/*Mapper.xml
  47. #实体扫描,多个package用逗号或者分号分隔
  48. typeAliasesPackage: org.springblade.**.entity
  49. #typeEnumsPackage: org.springblade.dashboard.entity.enums
  50. global-config:
  51. # 关闭MP3.0自带的banner
  52. banner: false
  53. db-config:
  54. #主键类型 0:"数据库ID自增", 1:"不操作", 2:"用户输入ID",3:"数字型snowflake", 4:"全局唯一ID UUID", 5:"字符串型snowflake";
  55. id-type: assign_id
  56. #字段策略
  57. insert-strategy: not_null
  58. update-strategy: not_null
  59. select-strategy: not_empty
  60. #驼峰下划线转换
  61. table-underline: true
  62. # 逻辑删除配置
  63. # 逻辑删除全局值(1表示已删除,这也是Mybatis Plus的默认配置)
  64. logic-delete-value: 1
  65. # 逻辑未删除全局值(0表示未删除,这也是Mybatis Plus的默认配置)
  66. logic-not-delete-value: 0
  67. configuration:
  68. map-underscore-to-camel-case: true
  69. cache-enabled: false
  70. type-enums-package: org.springblade.common.enums
  71. configuration.default-enum-type-handler: org.apache.ibatis.type.EnumOrdinalTypeHandler
  72. #knife4j配置
  73. knife4j:
  74. #启用
  75. enable: true
  76. #基础认证
  77. basic:
  78. enable: false
  79. username: blade
  80. password: blade
  81. #增强配置
  82. setting:
  83. enableSwaggerModels: true
  84. enableDocumentManage: true
  85. enableHost: false
  86. enableHostText: http://localhost
  87. enableRequestCache: true
  88. enableFilterMultipartApis: false
  89. enableFilterMultipartApiMethodType: POST
  90. language: zh-CN
  91. enableFooter: false
  92. enableFooterCustom: true
  93. footerCustomContent: Copyright © 2021 BladeX All Rights Reserved
  94. #swagger公共信息
  95. swagger:
  96. title: BladeX 接口文档系统
  97. description: BladeX 接口文档系统
  98. version: 2.8.2.RELEASE
  99. license: Powered By BladeX
  100. license-url: https://bladex.vip
  101. terms-of-service-url: https://bladex.vip
  102. contact:
  103. name: smallchill
  104. email: smallchill@163.com
  105. url: https://gitee.com/smallc
  106. #flowable配置
  107. flowable:
  108. activity-font-name: \u5B8B\u4F53
  109. label-font-name: \u5B8B\u4F53
  110. annotation-font-name: \u5B8B\u4F53
  111. check-process-definitions: false
  112. database-schema-update: false
  113. #报表配置
  114. report:
  115. enabled: false
  116. database:
  117. provider:
  118. prefix: blade-
  119. #oss默认配置
  120. oss:
  121. enabled: true
  122. name: qiniu
  123. tenant-mode: true
  124. endpoint: http://prt1thnw3.bkt.clouddn.com
  125. access-key: N_Loh1ngBqcJovwiAJqR91Ifj2vgOWHOf8AwBA_h
  126. secret-key: AuzuA1KHAbkIndCU0dB3Zfii2O3crHNODDmpxHRS
  127. bucket-name: bladex
  128. #第三方登陆配置
  129. social:
  130. oauth:
  131. GITHUB:
  132. client-id: 233************
  133. client-secret: 233************************************
  134. redirect-uri: ${social.domain}/oauth/redirect/github
  135. GITEE:
  136. client-id: 233************
  137. client-secret: 233************************************
  138. redirect-uri: ${social.domain}/oauth/redirect/gitee
  139. WECHAT_OPEN:
  140. client-id: 233************
  141. client-secret: 233************************************
  142. redirect-uri: ${social.domain}/oauth/redirect/wechat
  143. QQ:
  144. client-id: 233************
  145. client-secret: 233************************************
  146. redirect-uri: ${social.domain}/oauth/redirect/qq
  147. DINGTALK:
  148. client-id: 233************
  149. client-secret: 233************************************
  150. redirect-uri: ${social.domain}/oauth/redirect/dingtalk
  151. #blade配置
  152. blade:
  153. #token配置
  154. token:
  155. #是否有状态
  156. state: false
  157. #redis序列化方式
  158. redis:
  159. serializer-type: protostuff
  160. #接口配置
  161. api:
  162. #报文加密配置
  163. crypto:
  164. #启用报文加密配置
  165. enabled: false
  166. #使用AesUtil.genAesKey()生成
  167. aes-key: O2BEeIv399qHQNhD6aGW8R8DEj4bqHXm
  168. #使用DesUtil.genDesKey()生成
  169. des-key: jMVCBsFGDQr1USHo
  170. #jackson配置
  171. jackson:
  172. #null自动转空值e
  173. null-to-empty: false
  174. #大数字自动转字符串
  175. big-num-to-string: true
  176. #支持text文本请求,与报文加密同时开启
  177. support-text-plain: false
  178. #xss配置
  179. xss:
  180. enabled: true
  181. skip-url:
  182. - /blade-chat/weixin
  183. - /blade-desk/notice/submit
  184. #安全框架配置
  185. secure:
  186. #接口放行
  187. skip-url:
  188. - /blade-test/**
  189. - /common/account/**
  190. - /payment/callback/**
  191. - /payment/csurl/**
  192. - /payment/invitation/callback/**
  193. - /sms/**
  194. - /mall/yeepay/product/fee/modifyProductFeeNotify
  195. - /shop/yeepay/product/fee/modifyProductFeeNotify
  196. - /withdraw/callback/**
  197. - /withdraw/csurl/**
  198. #授权认证配置
  199. auth:
  200. - method: ALL
  201. pattern: /blade-chat/weixin/**
  202. expression: "hasAuth()"
  203. - method: POST
  204. pattern: /blade-desk/dashboard/upload
  205. expression: "hasTimeAuth(9, 17)"
  206. - method: POST
  207. pattern: /blade-desk/dashboard/submit
  208. expression: "hasAnyRole('administrator', 'admin', 'user')"
  209. #基础认证配置
  210. basic:
  211. - method: ALL
  212. pattern: /blade-desk/dashboard/info
  213. username: "blade"
  214. password: "blade"
  215. #动态签名认证配置
  216. sign:
  217. - method: ALL
  218. pattern: /blade-desk/dashboard/sign
  219. crypto: "sha1"
  220. #多终端认证配置
  221. client:
  222. - client-id: sword
  223. path-patterns:
  224. - /blade-sword/**
  225. - client-id: saber
  226. path-patterns:
  227. - /blade-saber/**
  228. #多租户配置
  229. tenant:
  230. #多租户增强
  231. enhance: true
  232. #多租户授权保护
  233. license: false
  234. #动态数据源功能
  235. dynamic-datasource: false
  236. #动态数据源全局扫描
  237. dynamic-global: false
  238. #多租户字段名
  239. column: tenant_id
  240. #排除多租户逻辑
  241. exclude-tables:
  242. - blade_user
  243. - blade_dict_biz
  244. - ldt_activity
  245. - ldt_join_record
  246. crypto:
  247. key: uAY9ugkHQpvozZeA
  248. whiteList:
  249. - /put-file
  250. - /payment/callback/
  251. - /payment/csurl/
  252. - /withdraw/callback/
  253. - /withdraw/csurl/
  254. - /pressure_test/scanPay
  255. - /pressure_test/deCodeNotifyData