application.yml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. #服务器配置
  2. server:
  3. port: 8800
  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: false
  114. name: aliyun
  115. template-id: SMS_97910018
  116. sign-name: liquor
  117. access-key: LTAI4GCNRML2EpFZxBWakWSc
  118. secret-key: 8u1spjDrT1hD2OaN9DS8NasSHipDfO
  119. region-id: cn-hangzhou
  120. #第三方登陆配置
  121. social:
  122. oauth:
  123. GITHUB:
  124. client-id: 233************
  125. client-secret: 233************************************
  126. redirect-uri: ${social.domain}/oauth/redirect/github
  127. GITEE:
  128. client-id: 233************
  129. client-secret: 233************************************
  130. redirect-uri: ${social.domain}/oauth/redirect/gitee
  131. WECHAT_OPEN:
  132. client-id: 233************
  133. client-secret: 233************************************
  134. redirect-uri: ${social.domain}/oauth/redirect/wechat
  135. QQ:
  136. client-id: 233************
  137. client-secret: 233************************************
  138. redirect-uri: ${social.domain}/oauth/redirect/qq
  139. DINGTALK:
  140. client-id: 233************
  141. client-secret: 233************************************
  142. redirect-uri: ${social.domain}/oauth/redirect/dingtalk
  143. #blade配置
  144. blade:
  145. #token配置
  146. token:
  147. #是否有状态
  148. state: false
  149. #redis序列化方式
  150. redis:
  151. serializer-type: protostuff
  152. #接口配置
  153. api:
  154. #报文加密配置
  155. crypto:
  156. #启用报文加密配置
  157. enabled: false
  158. #使用AesUtil.genAesKey()生成
  159. aes-key: O2BEeIv399qHQNhD6aGW8R8DEj4bqHXm
  160. #使用DesUtil.genDesKey()生成
  161. des-key: jMVCBsFGDQr1USHo
  162. #jackson配置
  163. jackson:
  164. #null自动转空值
  165. null-to-empty: true
  166. #大数字自动转字符串
  167. big-num-to-string: true
  168. #支持text文本请求,与报文加密同时开启
  169. support-text-plain: false
  170. #xss配置
  171. xss:
  172. enabled: true
  173. skip-url:
  174. - /blade-chat/weixin
  175. - /blade-desk/notice/submit
  176. #安全框架配置
  177. secure:
  178. #接口放行
  179. skip-url:
  180. - /blade-test/**
  181. - /v1/user-register
  182. - /v1/login_account
  183. - /v1/login_phone
  184. - /v1/reset_password
  185. - /v1/common/send-validate
  186. - /v1/aliPay/sdk/auth_notify_url # 预授权拦截
  187. - /v1/aliPay/sdk/trade_notify_url # 支付回调
  188. - /v1/aliPay/sdk/order_notify_url # 支付回调
  189. - /v1/aliPay/sdk/platform_authorization_notify_url
  190. - /v1/versionUpgrade
  191. #授权认证配置
  192. auth:
  193. - method: ALL
  194. pattern: /blade-chat/weixin/**
  195. expression: "hasAuth()"
  196. - method: POST
  197. pattern: /blade-desk/dashboard/upload
  198. expression: "hasTimeAuth(9, 17)"
  199. - method: POST
  200. pattern: /blade-desk/dashboard/submit
  201. expression: "hasAnyRole('administrator', 'admin', 'user')"
  202. #基础认证配置
  203. basic:
  204. - method: ALL
  205. pattern: /blade-desk/dashboard/info
  206. username: "blade"
  207. password: "blade"
  208. #动态签名认证配置
  209. sign:
  210. - method: ALL
  211. pattern: /blade-desk/dashboard/sign
  212. crypto: "sha1"
  213. #多终端认证配置
  214. client:
  215. - client-id: sword
  216. path-patterns:
  217. - /blade-sword/**
  218. - client-id: saber
  219. path-patterns:
  220. - /blade-saber/**
  221. #多租户配置
  222. tenant:
  223. #多租户增强
  224. enhance: true
  225. #多租户授权保护
  226. license: false
  227. #动态数据源功能
  228. dynamic-datasource: false
  229. #动态数据源全局扫描
  230. dynamic-global: false
  231. #多租户字段名
  232. column: tenant_id
  233. #排除多租户逻辑
  234. exclude-tables:
  235. - blade_user
  236. supply:
  237. chain:
  238. host: http://api.jxhh.com
  239. appKey: 3646BE2E163B42397592DB6CE007E747176081652417532
  240. secretKey: C4CF11DDD1EB99E829BEE1DEBECEB782
  241. apk:
  242. savePath: /Users/pangqijun/Downloads/store/
  243. downloadUrl: http://www.gzzhsckj.com/download/