application.yaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. spring:
  2. application:
  3. name: yudao-server
  4. profiles:
  5. active: test
  6. # active: dev
  7. main:
  8. allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
  9. # Servlet 配置
  10. servlet:
  11. # 文件上传相关配置项
  12. multipart:
  13. max-file-size: 220MB # 单个文件大小
  14. max-request-size: 400MB # 设置总上传的文件大小
  15. # location: D:\\
  16. mvc:
  17. pathmatch:
  18. matching-strategy: ANT_PATH_MATCHER # 解决 SpringFox 与 SpringBoot 2.6.x 不兼容的问题,参见 SpringFoxHandlerProviderBeanPostProcessor 类
  19. # throw-exception-if-no-handler-found: true # 404 错误时抛出异常,方便统一处理
  20. # static-path-pattern: /static/** # 静态资源路径; 注意:如果不配置,则 throw-exception-if-no-handler-found 不生效!!! TODO 芋艿:不能配置,会导致 swagger 不生效
  21. # Jackson 配置项
  22. jackson:
  23. serialization:
  24. write-dates-as-timestamps: true # 设置 Date 的格式,使用时间戳
  25. write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401
  26. write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳
  27. fail-on-empty-beans: false # 允许序列化无属性的 Bean
  28. # Cache 配置项
  29. cache:
  30. type: REDIS
  31. redis:
  32. time-to-live: 1h # 设置过期时间为 1 小时
  33. --- #################### 接口文档配置 ####################
  34. springdoc:
  35. api-docs:
  36. enabled: true
  37. path: /v3/api-docs
  38. swagger-ui:
  39. enabled: true
  40. path: /swagger-ui
  41. default-flat-param-object: true # 参见 https://doc.xiaominfo.com/docs/faq/v4/knife4j-parameterobject-flat-param 文档
  42. knife4j:
  43. enable: true
  44. setting:
  45. language: zh_cn
  46. # 工作流 Flowable 配置
  47. flowable:
  48. # 1. false: 默认值,Flowable 启动时,对比数据库表中保存的版本,如果不匹配。将抛出异常
  49. # 2. true: 启动时会对数据库中所有表进行更新操作,如果表存在,不做处理,反之,自动创建表
  50. # 3. create_drop: 启动时自动创建表,关闭时自动删除表
  51. # 4. drop_create: 启动时,删除旧表,再创建新表
  52. database-schema-update: true # 设置为 false,可通过 https://github.com/flowable/flowable-sql 初始化
  53. db-history-used: true # flowable6 默认 true 生成信息表,无需手动设置
  54. check-process-definitions: false # 设置为 false,禁用 /resources/processes 自动部署 BPMN XML 流程
  55. history-level: audit # full:保存历史数据的最高级别,可保存全部流程相关细节,包括流程流转各节点参数
  56. # MyBatis Plus 的配置项
  57. mybatis-plus:
  58. configuration:
  59. map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
  60. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  61. global-config:
  62. db-config:
  63. id-type: NONE # “智能”模式,基于 IdTypeEnvironmentPostProcessor + 数据源的类型,自动适配成 AUTO、INPUT 模式。
  64. # id-type: AUTO # 自增 ID,适合 MySQL 等直接自增的数据库
  65. # id-type: INPUT # 用户输入 ID,适合 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库
  66. # id-type: ASSIGN_ID # 分配 ID,默认使用雪花算法。注意,Oracle、PostgreSQL、Kingbase、DB2、H2 数据库时,需要去除实体类上的 @KeySequence 注解
  67. logic-delete-value: 1 # 逻辑已删除值(默认为 1)
  68. logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
  69. banner: false # 关闭控制台的 Banner 打印
  70. type-aliases-package: ${yudao.info.base-package}.module.*.dal.dataobject
  71. encryptor:
  72. password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成
  73. mybatis-plus-join:
  74. banner: false # 是否打印 mybatis plus join banner,默认true
  75. sub-table-logic: true # 全局启用副表逻辑删除,默认true。关闭后关联查询不会加副表逻辑删除
  76. ms-cache: true # 拦截器MappedStatement缓存,默认 true
  77. table-alias: t # 表别名(默认 t)
  78. logic-del-type: on # 副表逻辑删除条件的位置,支持 WHERE、ON,默认 ON
  79. # Spring Data Redis 配置
  80. spring:
  81. data:
  82. redis:
  83. repositories:
  84. enabled: false # 项目未使用到 Spring Data Redis 的 Repository,所以直接禁用,保证启动速度
  85. # VO 转换(数据翻译)相关
  86. easy-trans:
  87. is-enable-global: true # 启用全局翻译(拦截所有 SpringMVC ResponseBody 进行自动翻译 )。如果对于性能要求很高可关闭此配置,或通过 @IgnoreTrans 忽略某个接口
  88. is-enable-cloud: false # 禁用 TransType.RPC 微服务模式
  89. --- #################### 验证码相关配置 ####################
  90. aj:
  91. captcha:
  92. jigsaw: classpath:images/jigsaw # 滑动验证,底图路径,不配置将使用默认图片;以 classpath: 开头,取 resource 目录下路径
  93. pic-click: classpath:images/pic-click # 滑动验证,底图路径,不配置将使用默认图片;以 classpath: 开头,取 resource 目录下路径
  94. cache-type: redis # 缓存 local/redis...
  95. cache-number: 1000 # local 缓存的阈值,达到这个值,清除缓存
  96. timing-clear: 180 # local定时清除过期缓存(单位秒),设置为0代表不执行
  97. type: blockPuzzle # 验证码类型 default两种都实例化。 blockPuzzle 滑块拼图 clickWord 文字点选
  98. water-mark: 芋道源码 # 右下角水印文字(我的水印),可使用 https://tool.chinaz.com/tools/unicode.aspx 中文转 Unicode,Linux 可能需要转 unicode
  99. interference-options: 0 # 滑动干扰项(0/1/2)
  100. req-frequency-limit-enable: false # 接口请求次数一分钟限制是否开启 true|false
  101. req-get-lock-limit: 5 # 验证失败 5 次,get接口锁定
  102. req-get-lock-seconds: 10 # 验证失败后,锁定时间间隔
  103. req-get-minute-limit: 30 # get 接口一分钟内请求数限制
  104. req-check-minute-limit: 60 # check 接口一分钟内请求数限制
  105. req-verify-minute-limit: 60 # verify 接口一分钟内请求数限制
  106. --- #################### 消息队列相关 ####################
  107. # rocketmq 配置项,对应 RocketMQProperties 配置类
  108. rocketmq:
  109. # Producer 配置项
  110. producer:
  111. group: ${spring.application.name}_PRODUCER # 生产者分组
  112. spring:
  113. # Kafka 配置项,对应 KafkaProperties 配置类
  114. kafka:
  115. # Kafka Producer 配置项
  116. producer:
  117. acks: 1 # 0-不应答。1-leader 应答。all-所有 leader 和 follower 应答。
  118. retries: 3 # 发送失败时,重试发送的次数
  119. value-serializer: org.springframework.kafka.support.serializer.JsonSerializer # 消息的 value 的序列化
  120. # Kafka Consumer 配置项
  121. consumer:
  122. auto-offset-reset: earliest # 设置消费者分组最初的消费进度为 earliest 。可参考博客 https://blog.csdn.net/lishuangzhe7047/article/details/74530417 理解
  123. value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer
  124. properties:
  125. spring.json.trusted.packages: '*'
  126. # Kafka Consumer Listener 监听器配置
  127. listener:
  128. missing-topics-fatal: false # 消费监听接口监听的主题不存在时,默认会报错。所以通过设置为 false ,解决报错
  129. --- #################### 芋道相关配置 ####################
  130. yudao:
  131. info:
  132. version: 1.0.0
  133. base-package: cn.iocoder.yudao
  134. web:
  135. admin-ui:
  136. #url: http://dashboard.yudao.iocoder.cn # Admin 管理后台 UI 的地址
  137. url: http://192.168.1.107 # Admin 管理后台 UI 的地址
  138. security:
  139. permit-all_urls:
  140. - /admin-api/mp/open/** # 微信公众号开放平台,微信回调接口,不需要登录
  141. websocket:
  142. enable: true # websocket的开关
  143. path: /infra/ws # 路径
  144. sender-type: local # 消息发送的类型,可选值为 local、redis、rocketmq、kafka、rabbitmq
  145. sender-rocketmq:
  146. topic: ${spring.application.name}-websocket # 消息发送的 RocketMQ Topic
  147. consumer-group: ${spring.application.name}-websocket-consumer # 消息发送的 RocketMQ Consumer Group
  148. sender-rabbitmq:
  149. exchange: ${spring.application.name}-websocket-exchange # 消息发送的 RabbitMQ Exchange
  150. queue: ${spring.application.name}-websocket-queue # 消息发送的 RabbitMQ Queue
  151. sender-kafka:
  152. topic: ${spring.application.name}-websocket # 消息发送的 Kafka Topic
  153. consumer-group: ${spring.application.name}-websocket-consumer # 消息发送的 Kafka Consumer Group
  154. swagger:
  155. title: 芋道快速开发平台
  156. description: 提供管理后台、用户 App 的所有功能
  157. version: ${yudao.info.version}
  158. url: ${yudao.web.admin-ui.url}
  159. email: xingyu4j@vip.qq.com
  160. license: MIT
  161. license-url: https://gitee.com/zhijiantianya/ruoyi-vue-pro/blob/master/LICENSE
  162. captcha:
  163. enable: true # 验证码的开关,默认为 true
  164. codegen:
  165. base-package: ${yudao.info.base-package}
  166. db-schemas: ${spring.datasource.dynamic.datasource.master.name}
  167. front-type: 10 # 前端模版的类型,参见 CodegenFrontTypeEnum 枚举类
  168. tenant: # 多租户相关配置项
  169. enable: true
  170. ignore-urls:
  171. - /admin-api/system/tenant/get-id-by-name # 基于名字获取租户,不许带租户编号
  172. - /admin-api/system/tenant/get-by-website # 基于域名获取租户,不许带租户编号
  173. - /admin-api/system/captcha/get # 获取图片验证码,和租户无关
  174. - /admin-api/system/captcha/check # 校验图片验证码,和租户无关
  175. - /admin-api/infra/file/*/get/** # 获取图片,和租户无关
  176. - /admin-api/system/sms/callback/* # 短信回调接口,无法带上租户编号
  177. - /admin-api/pay/notify/** # 支付回调通知,不携带租户编号
  178. - /jmreport/* # 积木报表,无法携带租户编号
  179. - /admin-api/mp/open/** # 微信公众号开放平台,微信回调接口,无法携带租户编号
  180. - /admin-api/elderlySyntheticAbility/getSignInfoById
  181. - /admin-api/elderlySyntheticAbility/addSignInfo
  182. - /admin-api/elderlySyntheticAbility/confirmSign
  183. - /admin-api/build/getNurseScreenDataByRoomCode
  184. - /admin-api/system/dict-data/getDictTypePageByPermitAll
  185. - /admin-api/device/watchData/watchDataCallBack
  186. - /admin-api/system/auth/social-auth2-redirect
  187. - /admin-api/system/auth/social-auth2-check
  188. - /admin-api/system/auth/checkTenantLogin
  189. - /admin-api/elderlyInfo/findMbtiPage
  190. - /admin-api/elderlyInfo/saveMBTIResult
  191. - /admin-api/elderlyInfo/getGroupHomeData
  192. - /admin-api/elderlyInfo/getTenantHomeData
  193. - /admin-api/elderlyInfo/getMonitorUrl
  194. - /admin-api/elderlyInfo/getGroupTenant
  195. - /admin-api/bpm/elderly/checkInCreate
  196. - /admin-api/wechat/mp/callback
  197. - /admin-api/wechat/mp/message/send
  198. - /admin-api/elderly/expenseOrder/wx/getOrder
  199. - /admin-api/elderly/expenseOrder/getOrderListByUserPhone
  200. - /admin-api/pay/ccb-wx/unified-order
  201. - /admin-api/pay/ccb-wx/callback
  202. - /admin-api/elderlyInfo/getCateringPlan
  203. - /admin-api/ykCenter/proceeds/paymentRecordConfirmChangeRecord
  204. - /admin-api/internal/proxy
  205. - /admin-api/pay/wx/unifiedOrder
  206. - /admin-api/pay/wx/callback
  207. - /admin-api/build/getFloorTree
  208. - /admin-api/elderly/order-food/commit
  209. - /admin-api/elderly/order-food/get
  210. - /admin-api/elderly/order-food/page
  211. - /admin-api/relatives/getDetailsByElderId
  212. - /admin-api/elderly/nursingPlan/getNursingPlanByElderId
  213. - /admin-api/elderly-nursing-log/create
  214. - /admin-api/elderly-nursing-log/detail
  215. - /admin-api/elderly-nursing-log/list
  216. - /admin-api/elderlyInfo/miniGetElderInfo
  217. - /admin-api/ward/roundRecord/create
  218. - /admin-api/infra/file/upload
  219. - /admin-api/build/getBedListByTenantIdAndKeyword
  220. - /admin-api/nurse/nurseLeve/simple-list
  221. - /admin-api/nursing/special-plan-item/getUnfinishedByFloorId
  222. - /admin-api/nursing/special-plan-item/execute
  223. - /admin-api/elderly-nursing-log/executeNursingLog
  224. - /admin-api/elderly/nursingPlan/getLowFrequencyPlanItemsByFloorId
  225. - /admin-api/elderly-items-round/batch-create
  226. # - /admin-api/bpm/check-in-wait/create
  227. ignore-tables:
  228. - system_tenant
  229. - system_groups
  230. - system_tenant_package
  231. - system_group_tenant
  232. - system_enterprise_info
  233. - system_enterprise_bank_info
  234. - system_dict_data
  235. - system_dict_type
  236. - system_error_code
  237. - system_menu
  238. - system_sms_channel
  239. - system_sms_template
  240. - system_sms_log
  241. - system_sensitive_word
  242. - system_oauth2_client
  243. - system_mail_account
  244. - system_mail_template
  245. - system_mail_log
  246. - system_notify_template
  247. - infra_codegen_column
  248. - infra_codegen_table
  249. - infra_config
  250. - infra_file_config
  251. - infra_file
  252. - infra_file_content
  253. - infra_job
  254. - infra_job_log
  255. - infra_job_log
  256. - infra_data_source_config
  257. - jimu_dict
  258. - jimu_dict_item
  259. - jimu_report
  260. - jimu_report_data_source
  261. - jimu_report_db
  262. - jimu_report_db_field
  263. - jimu_report_db_param
  264. - jimu_report_link
  265. - jimu_report_map
  266. - jimu_report_share
  267. - rep_demo_dxtj
  268. - rep_demo_employee
  269. - rep_demo_gongsi
  270. - rep_demo_jianpiao
  271. - tmp_report_data_1
  272. - tmp_report_data_income
  273. - nurse_item
  274. - elderly_info
  275. - elderly_synthetic_ability
  276. - elderly_contract
  277. sms-code: # 短信验证码相关的配置项
  278. expire-times: 10m
  279. send-frequency: 1m
  280. send-maximum-quantity-per-day: 10
  281. begin-code: 9999 # 这里配置 9999 的原因是,测试方便。
  282. end-code: 9999 # 这里配置 9999 的原因是,测试方便。
  283. trade:
  284. order:
  285. app-id: 1 # 商户编号
  286. pay-expire-time: 2h # 支付的过期时间
  287. receive-expire-time: 14d # 收货的过期时间
  288. comment-expire-time: 7d # 评论的过期时间
  289. express:
  290. client: kd_niao
  291. kd-niao:
  292. api-key: cb022f1e-48f1-4c4a-a723-9001ac9676b8
  293. business-id: 1809751
  294. kd100:
  295. key: pLXUGAwK5305
  296. customer: E77DF18BE109F454A5CD319E44BF5177
  297. debug: false
  298. # 积木报表配置
  299. jeecg:
  300. jmreport:
  301. saas-mode: tenant
  302. aliyun:
  303. sms:
  304. access-key-id: LTAI5tBkmcgS1uyMfxc5Qg4e
  305. access-key-secret: p8%{s5gs3FNj8EJBUb(GpIk#oqEVUkHe
  306. wechat:
  307. mp: # 微信公众号配置
  308. app-id: wx5327dac246d9ed86
  309. app-secret: ca7e095bb686187c2894995c782f583d
  310. templateId: nBzy7Ht9OY5nsmEoVCzJB3BkBB7wZcrK16IuCDnHIRo
  311. miniapp:
  312. app-id: wx0fe6b44ff9e5d4d6
  313. pay: #微信支付配置
  314. public-key: |
  315. -----BEGIN PUBLIC KEY-----
  316. MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuh82JjfQ/r0+mz8W9ZAr
  317. Uw5nLSSzUKxvepSnWny0a7ccZFB+j8q9pZWq7gmfyOmsC6uq8gmzPDnOD+xrBfj7
  318. t8R3x/VU7tpmGtdNecQFTaJ6NrausM82sMVdf9XOpQvERgVtfIO5U1q3jqSfTyNk
  319. MchXhQMoWa3RXDl7EO0okLIKoNgA1o4AWZZaVyiJ0BjF/URwk6O0eg+g2PqDldFr
  320. RxQIHLsaFnFsDJx5bNia9Jb48g+nNpoKtW1njsPDn/ckTOvnZxdkbkwIaQ2NDli1
  321. ehsaDK6ACReD/A6nIlDQB50duKhVNzx10MZwikD2OWAPUnY6rIE9cqWwKUH4okWJ
  322. BwIDAQAB
  323. -----END PUBLIC KEY-----
  324. # 公钥ID(微信支付平台提供的公钥ID,通常是一串数字)
  325. public-key-id: "PUB_KEY_ID_0111058353662026030200381966000601"
  326. # APIv3密钥(32字节字符串)
  327. api-v3-key: "W2sE4rF6tY8uI0oP1aQ2wS3dF4gH5jK6"