application.yml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. #服务器配置
  2. server:
  3. port: 8801
  4. undertow:
  5. threads:
  6. # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
  7. io: 16
  8. # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
  9. worker: 400
  10. # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
  11. buffer-size: 1024
  12. # 是否分配的直接内存
  13. direct-buffers: true
  14. spring:
  15. http:
  16. multipart:
  17. enabled: true
  18. file-size-threshold: 0
  19. max-file-size: 20MB
  20. max-request-size: 30MB
  21. datasource:
  22. driver-class-name: com.mysql.cj.jdbc.Driver
  23. #driver-class-name: org.postgresql.Driver
  24. #driver-class-name: oracle.jdbc.OracleDriver
  25. #driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
  26. druid:
  27. # MySql、PostgreSQL、SqlServer校验
  28. validation-query: select 1
  29. # Oracle校验
  30. #validation-query: select 1 from dual
  31. validation-query-timeout: 2000
  32. initial-size: 5
  33. max-active: 20
  34. min-idle: 5
  35. max-wait: 60000
  36. test-on-borrow: false
  37. test-on-return: false
  38. test-while-idle: true
  39. time-between-eviction-runs-millis: 60000
  40. min-evictable-idle-time-millis: 300000
  41. stat-view-servlet:
  42. enabled: true
  43. login-username: 18185837450
  44. login-password: 74500013
  45. web-stat-filter:
  46. enabled: true
  47. url-pattern: /*
  48. exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
  49. session-stat-enable: true
  50. session-stat-max-count: 10
  51. # mybatis
  52. mybatis-plus:
  53. mapper-locations: classpath:org/springblade/**/mapper/*Mapper.xml
  54. #实体扫描,多个package用逗号或者分号分隔
  55. typeAliasesPackage: org.springblade.**.entity
  56. #typeEnumsPackage: org.springblade.dashboard.entity.enums
  57. global-config:
  58. # 关闭MP3.0自带的banner
  59. banner: false
  60. db-config:
  61. #主键类型 0:"数据库ID自增", 1:"不操作", 2:"用户输入ID",3:"数字型snowflake", 4:"全局唯一ID UUID", 5:"字符串型snowflake";
  62. id-type: assign_id
  63. #字段策略
  64. insert-strategy: not_null
  65. update-strategy: not_null
  66. select-strategy: not_empty
  67. #驼峰下划线转换
  68. table-underline: true
  69. # 逻辑删除配置
  70. # 逻辑删除全局值(1表示已删除,这也是Mybatis Plus的默认配置)
  71. logic-delete-value: 1
  72. # 逻辑未删除全局值(0表示未删除,这也是Mybatis Plus的默认配置)
  73. logic-not-delete-value: 0
  74. configuration:
  75. map-underscore-to-camel-case: true
  76. cache-enabled: false
  77. #knife4j配置
  78. knife4j:
  79. #启用
  80. enable: true
  81. #基础认证
  82. basic:
  83. enable: false
  84. username: blade
  85. password: blade
  86. #增强配置
  87. setting:
  88. enableSwaggerModels: true
  89. enableDocumentManage: true
  90. enableHost: false
  91. enableHostText: http://localhost
  92. enableRequestCache: true
  93. enableFilterMultipartApis: false
  94. enableFilterMultipartApiMethodType: POST
  95. language: zh-CN
  96. enableFooter: false
  97. enableFooterCustom: true
  98. footerCustomContent: Copyright © 2021 BladeX All Rights Reserved
  99. #swagger公共信息
  100. swagger:
  101. title: Consignx 接口文档系统
  102. description: Consignx 接口文档系统
  103. version: 2.9.0.RELEASE
  104. license: xuwei
  105. license-url:
  106. terms-of-service-url:
  107. contact:
  108. name: xuwei
  109. email: xuweidyx@163.com
  110. url: https://gitee.com/x-t1/bladex-boot
  111. # 短信配置
  112. sms:
  113. enabled: true
  114. name: aliyun
  115. sign-name: liquor
  116. # template-id: SMS_97910018
  117. # access-key: LTAI4GCNRML2EpFZxBWakWSc
  118. # secret-key: 8u1spjDrT1hD2OaN9DS8NasSHipDfO
  119. template-id: SMS_243346641
  120. access-key: LTAI5tQJaGbQkJn5tqwot8gm
  121. secret-key: 59m2lXM2kDA1l2FRJ56VS5J1iNt9kC
  122. # 用于发送短信的支付宝配置
  123. region-id: cn-hangzhou
  124. access-key-id: LTAI5tJkrXAxPJnQdaQX6ZZX
  125. access-key-secret: cI9X9pjjcKavsEXfbf5QFeElAoklHd
  126. # 检测到数据异常时接收通知短信的号码
  127. message-phone: 18786650887
  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自动转空值
  173. null-to-empty: true
  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. - /v1/user-register
  190. - /v1/login_account
  191. - /v1/login/wx-auth
  192. - /v1/login_phone
  193. - /v1/reset_password
  194. - /v1/common/send-validate
  195. - /v1/aliPay/sdk/auth_notify_url # 预授权拦截
  196. - /v1/aliPay/sdk/new_auth_notify_url # 预授权拦截
  197. - /v1/aliPay/sdk/trade_notify_url # 支付回调
  198. - /v1/aliPay/sdk/order_notify_url # 支付回调
  199. - /v1/balance/recharge_url # 充值回调
  200. - /v1/aliPay/sdk/platform_authorization_notify_url
  201. - /v1/aliPay/sdk/cart_order_notify_url # 购物车支付回调
  202. - /v1/versionUpgrade
  203. - /v1/re/goodsInfo/page
  204. - /v1/re/goodsInfo/detail
  205. - /v1/file/uploadErrLog
  206. - /v1/wxPay/v3/payNotify
  207. - /v1/wxPay/v3/payNotify/cart
  208. - /v1/wxPay/v3/refundNotify
  209. - /finance/order/linkedOrder/addByExcel
  210. - /v1/aliPay/zhzx/callback
  211. - /v1/aliPay/zhzx/callback/cart
  212. #授权认证配置
  213. auth:
  214. - method: ALL
  215. pattern: /blade-chat/weixin/**
  216. expression: "hasAuth()"
  217. - method: POST
  218. pattern: /blade-desk/dashboard/upload
  219. expression: "hasTimeAuth(9, 17)"
  220. - method: POST
  221. pattern: /blade-desk/dashboard/submit
  222. expression: "hasAnyRole('administrator', 'admin', 'user')"
  223. #基础认证配置
  224. basic:
  225. - method: ALL
  226. pattern: /blade-desk/dashboard/info
  227. username: "blade"
  228. password: "blade"
  229. #动态签名认证配置
  230. sign:
  231. - method: ALL
  232. pattern: /blade-desk/dashboard/sign
  233. crypto: "sha1"
  234. #多终端认证配置
  235. client:
  236. - client-id: sword
  237. path-patterns:
  238. - /blade-sword/**
  239. - client-id: saber
  240. path-patterns:
  241. - /blade-saber/**
  242. #多租户配置
  243. tenant:
  244. #多租户增强
  245. enhance: true
  246. #多租户授权保护
  247. license: false
  248. #动态数据源功能
  249. dynamic-datasource: false
  250. #动态数据源全局扫描
  251. dynamic-global: false
  252. #多租户字段名
  253. column: tenant_id
  254. #排除多租户逻辑
  255. exclude-tables:
  256. - blade_user
  257. supply:
  258. chain:
  259. host: http://api.jxhh.com
  260. appKey: 3646BE2E163B42397592DB6CE007E747176081652417532
  261. secretKey: C4CF11DDD1EB99E829BEE1DEBECEB782