2021-01-01 01:52:14 +08:00
|
|
|
|
spring:
|
2021-01-03 01:45:20 +08:00
|
|
|
|
application:
|
2022-04-13 12:24:08 +08:00
|
|
|
|
name: yudao-server
|
2021-01-26 21:33:15 +08:00
|
|
|
|
|
2021-02-20 00:42:38 +08:00
|
|
|
|
profiles:
|
2021-02-20 14:50:26 +08:00
|
|
|
|
active: local
|
2021-02-20 00:42:38 +08:00
|
|
|
|
|
2022-06-01 22:18:02 +08:00
|
|
|
|
main:
|
|
|
|
|
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
|
|
|
|
|
|
2021-01-14 21:20:32 +08:00
|
|
|
|
# Servlet 配置
|
|
|
|
|
servlet:
|
|
|
|
|
# 文件上传相关配置项
|
|
|
|
|
multipart:
|
|
|
|
|
max-file-size: 16MB # 单个文件大小
|
|
|
|
|
max-request-size: 32MB # 设置总上传的文件大小
|
2022-06-01 22:18:02 +08:00
|
|
|
|
mvc:
|
|
|
|
|
pathmatch:
|
|
|
|
|
matching-strategy: ANT_PATH_MATCHER # 解决 SpringFox 与 SpringBoot 2.6.x 不兼容的问题,参见 SpringFoxHandlerProviderBeanPostProcessor 类
|
2022-11-16 21:52:33 +08:00
|
|
|
|
# throw-exception-if-no-handler-found: true # 404 错误时抛出异常,方便统一处理
|
|
|
|
|
# static-path-pattern: /static/** # 静态资源路径; 注意:如果不配置,则 throw-exception-if-no-handler-found 不生效!!! TODO 芋艿:不能配置,会导致 swagger 不生效
|
2021-01-26 21:33:15 +08:00
|
|
|
|
|
2021-01-24 12:15:59 +08:00
|
|
|
|
# Jackson 配置项
|
|
|
|
|
jackson:
|
|
|
|
|
serialization:
|
2021-01-28 01:34:49 +08:00
|
|
|
|
write-dates-as-timestamps: true # 设置 Date 的格式,使用时间戳
|
2021-01-24 12:15:59 +08:00
|
|
|
|
write-date-timestamps-as-nanoseconds: false # 设置不使用 nanoseconds 的格式。例如说 1611460870.401,而是直接 1611460870401
|
2021-01-28 01:34:49 +08:00
|
|
|
|
write-durations-as-timestamps: true # 设置 Duration 的格式,使用时间戳
|
|
|
|
|
fail-on-empty-beans: false # 允许序列化无属性的 Bean
|
2021-01-02 13:13:08 +08:00
|
|
|
|
|
2022-04-03 13:23:00 +08:00
|
|
|
|
# Cache 配置项
|
|
|
|
|
cache:
|
|
|
|
|
type: REDIS
|
2022-04-04 00:09:47 +08:00
|
|
|
|
redis:
|
|
|
|
|
time-to-live: 1h # 设置过期时间为 1 小时
|
2022-04-03 13:23:00 +08:00
|
|
|
|
|
2023-01-19 15:03:46 +08:00
|
|
|
|
--- #################### 接口文档配置 ####################
|
|
|
|
|
|
2022-12-22 00:25:22 +08:00
|
|
|
|
springdoc:
|
2023-01-16 15:15:31 +08:00
|
|
|
|
api-docs:
|
2023-01-16 22:58:56 +08:00
|
|
|
|
enabled: true
|
2023-01-16 15:15:31 +08:00
|
|
|
|
path: /v3/api-docs
|
2023-01-19 15:15:40 +08:00
|
|
|
|
swagger-ui:
|
|
|
|
|
enabled: true
|
|
|
|
|
path: /swagger-ui
|
2023-09-09 15:04:22 +08:00
|
|
|
|
default-flat-param-object: true # 参见 https://doc.xiaominfo.com/docs/faq/v4/knife4j-parameterobject-flat-param 文档
|
2023-01-16 15:15:31 +08:00
|
|
|
|
|
2023-01-17 20:42:18 +08:00
|
|
|
|
knife4j:
|
|
|
|
|
enable: true
|
|
|
|
|
setting:
|
|
|
|
|
language: zh_cn
|
2022-12-22 00:25:22 +08:00
|
|
|
|
|
2022-02-28 00:58:11 +08:00
|
|
|
|
# 工作流 Flowable 配置
|
|
|
|
|
flowable:
|
2022-04-30 22:52:55 +08:00
|
|
|
|
# 1. false: 默认值,Flowable 启动时,对比数据库表中保存的版本,如果不匹配。将抛出异常
|
2022-02-28 00:58:11 +08:00
|
|
|
|
# 2. true: 启动时会对数据库中所有表进行更新操作,如果表存在,不做处理,反之,自动创建表
|
|
|
|
|
# 3. create_drop: 启动时自动创建表,关闭时自动删除表
|
|
|
|
|
# 4. drop_create: 启动时,删除旧表,再创建新表
|
2022-04-30 23:26:43 +08:00
|
|
|
|
database-schema-update: true # 设置为 false,可通过 https://github.com/flowable/flowable-sql 初始化
|
2022-02-28 00:58:11 +08:00
|
|
|
|
db-history-used: true # flowable6 默认 true 生成信息表,无需手动设置
|
|
|
|
|
check-process-definitions: false # 设置为 false,禁用 /resources/processes 自动部署 BPMN XML 流程
|
|
|
|
|
history-level: full # full:保存历史数据的最高级别,可保存全部流程相关细节,包括流程流转各节点参数
|
|
|
|
|
|
2021-02-19 23:13:13 +08:00
|
|
|
|
# MyBatis Plus 的配置项
|
|
|
|
|
mybatis-plus:
|
2022-01-16 02:55:25 +08:00
|
|
|
|
configuration:
|
|
|
|
|
map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
|
2021-02-19 23:13:13 +08:00
|
|
|
|
global-config:
|
|
|
|
|
db-config:
|
2022-04-30 11:38:21 +08:00
|
|
|
|
id-type: NONE # “智能”模式,基于 IdTypeEnvironmentPostProcessor + 数据源的类型,自动适配成 AUTO、INPUT 模式。
|
|
|
|
|
# id-type: AUTO # 自增 ID,适合 MySQL 等直接自增的数据库
|
|
|
|
|
# id-type: INPUT # 用户输入 ID,适合 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库
|
|
|
|
|
# id-type: ASSIGN_ID # 分配 ID,默认使用雪花算法。注意,Oracle、PostgreSQL、Kingbase、DB2、H2 数据库时,需要去除实体类上的 @KeySequence 注解
|
2021-02-19 23:13:13 +08:00
|
|
|
|
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
|
|
|
|
|
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
|
2023-09-16 17:04:59 +08:00
|
|
|
|
banner: false # 关闭控制台的 Banner 打印
|
2022-02-02 13:57:25 +08:00
|
|
|
|
type-aliases-package: ${yudao.info.base-package}.module.*.dal.dataobject
|
2022-11-12 09:15:02 +08:00
|
|
|
|
encryptor:
|
|
|
|
|
password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成
|
2021-03-20 12:51:53 +08:00
|
|
|
|
|
2023-09-16 17:04:59 +08:00
|
|
|
|
mybatis-plus-join:
|
|
|
|
|
banner: false # 关闭控制台的 Banner 打印
|
|
|
|
|
|
2023-09-16 13:29:47 +08:00
|
|
|
|
# Spring Data Redis 配置
|
|
|
|
|
spring:
|
|
|
|
|
data:
|
|
|
|
|
redis:
|
|
|
|
|
repositories:
|
|
|
|
|
enabled: false # 项目未使用到 Spring Data Redis 的 Repository,所以直接禁用,保证启动速度
|
2022-08-02 16:29:45 +08:00
|
|
|
|
--- #################### 验证码相关配置 ####################
|
|
|
|
|
|
|
|
|
|
aj:
|
|
|
|
|
captcha:
|
2022-09-04 11:26:37 +08:00
|
|
|
|
jigsaw: classpath:images/jigsaw # 滑动验证,底图路径,不配置将使用默认图片;以 classpath: 开头,取 resource 目录下路径
|
|
|
|
|
pic-click: classpath:images/pic-click # 滑动验证,底图路径,不配置将使用默认图片;以 classpath: 开头,取 resource 目录下路径
|
|
|
|
|
cache-type: redis # 缓存 local/redis...
|
|
|
|
|
cache-number: 1000 # local 缓存的阈值,达到这个值,清除缓存
|
|
|
|
|
timing-clear: 180 # local定时清除过期缓存(单位秒),设置为0代表不执行
|
|
|
|
|
type: blockPuzzle # 验证码类型 default两种都实例化。 blockPuzzle 滑块拼图 clickWord 文字点选
|
|
|
|
|
water-mark: 芋道源码 # 右下角水印文字(我的水印),可使用 https://tool.chinaz.com/tools/unicode.aspx 中文转 Unicode,Linux 可能需要转 unicode
|
2022-11-11 20:02:11 +08:00
|
|
|
|
interference-options: 0 # 滑动干扰项(0/1/2)
|
2022-09-04 11:26:37 +08:00
|
|
|
|
req-frequency-limit-enable: false # 接口请求次数一分钟限制是否开启 true|false
|
2022-11-11 20:02:11 +08:00
|
|
|
|
req-get-lock-limit: 5 # 验证失败 5 次,get接口锁定
|
2022-09-04 11:26:37 +08:00
|
|
|
|
req-get-lock-seconds: 10 # 验证失败后,锁定时间间隔
|
|
|
|
|
req-get-minute-limit: 30 # get 接口一分钟内请求数限制
|
|
|
|
|
req-check-minute-limit: 60 # check 接口一分钟内请求数限制
|
|
|
|
|
req-verify-minute-limit: 60 # verify 接口一分钟内请求数限制
|
2022-08-02 16:29:45 +08:00
|
|
|
|
|
2023-11-02 00:07:38 +08:00
|
|
|
|
--- #################### 消息队列相关 ####################
|
|
|
|
|
|
|
|
|
|
# rocketmq 配置项,对应 RocketMQProperties 配置类
|
|
|
|
|
rocketmq:
|
|
|
|
|
# Producer 配置项
|
|
|
|
|
producer:
|
|
|
|
|
group: ${spring.application.name}_PRODUCER # 生产者分组
|
|
|
|
|
|
2023-11-02 12:25:50 +08:00
|
|
|
|
spring:
|
|
|
|
|
# Kafka 配置项,对应 KafkaProperties 配置类
|
|
|
|
|
kafka:
|
|
|
|
|
# Kafka Producer 配置项
|
|
|
|
|
producer:
|
|
|
|
|
acks: 1 # 0-不应答。1-leader 应答。all-所有 leader 和 follower 应答。
|
|
|
|
|
retries: 3 # 发送失败时,重试发送的次数
|
|
|
|
|
value-serializer: org.springframework.kafka.support.serializer.JsonSerializer # 消息的 value 的序列化
|
|
|
|
|
# Kafka Consumer 配置项
|
|
|
|
|
consumer:
|
|
|
|
|
auto-offset-reset: earliest # 设置消费者分组最初的消费进度为 earliest 。可参考博客 https://blog.csdn.net/lishuangzhe7047/article/details/74530417 理解
|
|
|
|
|
value-deserializer: org.springframework.kafka.support.serializer.JsonDeserializer
|
|
|
|
|
properties:
|
|
|
|
|
spring.json.trusted.packages: '*'
|
|
|
|
|
# Kafka Consumer Listener 监听器配置
|
|
|
|
|
listener:
|
|
|
|
|
missing-topics-fatal: false # 消费监听接口监听的主题不存在时,默认会报错。所以通过设置为 false ,解决报错
|
|
|
|
|
|
2021-04-21 00:02:41 +08:00
|
|
|
|
--- #################### 芋道相关配置 ####################
|
|
|
|
|
|
2021-03-21 21:09:25 +08:00
|
|
|
|
yudao:
|
2021-05-03 00:09:07 +08:00
|
|
|
|
info:
|
|
|
|
|
version: 1.0.0
|
2022-02-02 13:57:25 +08:00
|
|
|
|
base-package: cn.iocoder.yudao
|
2021-05-03 00:09:07 +08:00
|
|
|
|
web:
|
2022-02-01 20:33:03 +08:00
|
|
|
|
admin-ui:
|
|
|
|
|
url: http://dashboard.yudao.iocoder.cn # Admin 管理后台 UI 的地址
|
2022-07-06 21:45:25 +08:00
|
|
|
|
security:
|
|
|
|
|
permit-all_urls:
|
2023-01-01 23:48:10 +08:00
|
|
|
|
- /admin-api/mp/open/** # 微信公众号开放平台,微信回调接口,不需要登录
|
2023-01-06 17:30:48 +08:00
|
|
|
|
websocket:
|
|
|
|
|
enable: true # websocket的开关
|
|
|
|
|
path: /websocket/message # 路径
|
|
|
|
|
maxOnlineCount: 0 # 最大连接人数
|
|
|
|
|
sessionMap: true # 保存sessionMap
|
2021-05-03 00:09:07 +08:00
|
|
|
|
swagger:
|
2023-01-19 15:22:58 +08:00
|
|
|
|
title: 芋道快速开发平台
|
|
|
|
|
description: 提供管理后台、用户 App 的所有功能
|
2021-05-03 00:09:07 +08:00
|
|
|
|
version: ${yudao.info.version}
|
2023-01-17 20:42:18 +08:00
|
|
|
|
url: ${yudao.web.admin-ui.url}
|
|
|
|
|
email: xingyu4j@vip.qq.com
|
|
|
|
|
license: MIT
|
|
|
|
|
license-url: https://gitee.com/zhijiantianya/ruoyi-vue-pro/blob/master/LICENSE
|
2021-05-03 00:09:07 +08:00
|
|
|
|
captcha:
|
2022-11-12 09:52:36 +08:00
|
|
|
|
enable: true # 验证码的开关,默认为 true
|
2021-05-03 00:09:07 +08:00
|
|
|
|
codegen:
|
|
|
|
|
base-package: ${yudao.info.base-package}
|
|
|
|
|
db-schemas: ${spring.datasource.dynamic.datasource.master.name}
|
2023-04-13 07:53:41 +08:00
|
|
|
|
front-type: 10 # 前端模版的类型,参见 CodegenFrontTypeEnum 枚举类
|
2021-04-21 00:02:41 +08:00
|
|
|
|
error-code: # 错误码相关配置项
|
|
|
|
|
constants-class-list:
|
2022-02-02 01:27:04 +08:00
|
|
|
|
- cn.iocoder.yudao.module.bpm.enums.ErrorCodeConstants
|
|
|
|
|
- cn.iocoder.yudao.module.infra.enums.ErrorCodeConstants
|
|
|
|
|
- cn.iocoder.yudao.module.member.enums.ErrorCodeConstants
|
|
|
|
|
- cn.iocoder.yudao.module.pay.enums.ErrorCodeConstants
|
2022-01-31 00:33:55 +08:00
|
|
|
|
- cn.iocoder.yudao.module.system.enums.ErrorCodeConstants
|
2023-01-28 20:10:19 +08:00
|
|
|
|
- cn.iocoder.yudao.module.mp.enums.ErrorCodeConstants
|
2022-03-08 10:09:27 +08:00
|
|
|
|
tenant: # 多租户相关配置项
|
2022-02-20 00:33:12 +08:00
|
|
|
|
enable: true
|
2022-02-24 00:53:28 +08:00
|
|
|
|
ignore-urls:
|
2022-03-08 00:23:53 +08:00
|
|
|
|
- /admin-api/system/tenant/get-id-by-name # 基于名字获取租户,不许带租户编号
|
2023-11-06 19:47:21 +08:00
|
|
|
|
- /admin-api/system/tenant/get-by-website # 基于域名获取租户,不许带租户编号
|
2022-11-11 20:47:45 +08:00
|
|
|
|
- /admin-api/system/captcha/get # 获取图片验证码,和租户无关
|
|
|
|
|
- /admin-api/system/captcha/check # 校验图片验证码,和租户无关
|
2022-03-16 23:31:26 +08:00
|
|
|
|
- /admin-api/infra/file/*/get/** # 获取图片,和租户无关
|
2022-03-08 00:23:53 +08:00
|
|
|
|
- /admin-api/system/sms/callback/* # 短信回调接口,无法带上租户编号
|
2023-07-17 11:47:45 +08:00
|
|
|
|
- /admin-api/pay/notify/** # 支付回调通知,不携带租户编号
|
2022-09-04 11:26:37 +08:00
|
|
|
|
- /jmreport/* # 积木报表,无法携带租户编号
|
2023-01-01 23:48:10 +08:00
|
|
|
|
- /admin-api/mp/open/** # 微信公众号开放平台,微信回调接口,无法携带租户编号
|
2022-02-24 00:53:28 +08:00
|
|
|
|
ignore-tables:
|
|
|
|
|
- system_tenant
|
|
|
|
|
- system_tenant_package
|
|
|
|
|
- system_dict_data
|
|
|
|
|
- system_dict_type
|
|
|
|
|
- system_error_code
|
|
|
|
|
- system_menu
|
|
|
|
|
- system_sms_channel
|
|
|
|
|
- system_sms_template
|
|
|
|
|
- system_sms_log
|
2022-04-09 10:48:47 +08:00
|
|
|
|
- system_sensitive_word
|
2022-05-11 00:43:03 +08:00
|
|
|
|
- system_oauth2_client
|
2023-01-25 20:44:48 +08:00
|
|
|
|
- system_mail_account
|
|
|
|
|
- system_mail_template
|
|
|
|
|
- system_mail_log
|
2023-01-28 20:10:19 +08:00
|
|
|
|
- system_notify_template
|
2022-03-11 00:39:34 +08:00
|
|
|
|
- infra_codegen_column
|
|
|
|
|
- infra_codegen_table
|
|
|
|
|
- infra_test_demo
|
|
|
|
|
- infra_config
|
2022-03-15 22:30:52 +08:00
|
|
|
|
- infra_file_config
|
2022-03-11 00:39:34 +08:00
|
|
|
|
- infra_file
|
2022-03-15 22:30:52 +08:00
|
|
|
|
- infra_file_content
|
2022-03-11 00:39:34 +08:00
|
|
|
|
- infra_job
|
|
|
|
|
- infra_job_log
|
|
|
|
|
- infra_job_log
|
2022-04-27 23:15:43 +08:00
|
|
|
|
- infra_data_source_config
|
2022-07-10 18:08:26 +08:00
|
|
|
|
- jimu_dict
|
|
|
|
|
- jimu_dict_item
|
|
|
|
|
- jimu_report
|
|
|
|
|
- jimu_report_data_source
|
|
|
|
|
- jimu_report_db
|
|
|
|
|
- jimu_report_db_field
|
|
|
|
|
- jimu_report_db_param
|
|
|
|
|
- jimu_report_link
|
|
|
|
|
- jimu_report_map
|
|
|
|
|
- jimu_report_share
|
|
|
|
|
- rep_demo_dxtj
|
|
|
|
|
- rep_demo_employee
|
|
|
|
|
- rep_demo_gongsi
|
|
|
|
|
- rep_demo_jianpiao
|
|
|
|
|
- tmp_report_data_1
|
|
|
|
|
- tmp_report_data_income
|
2022-01-28 20:21:01 +08:00
|
|
|
|
sms-code: # 短信验证码相关的配置项
|
|
|
|
|
expire-times: 10m
|
|
|
|
|
send-frequency: 1m
|
|
|
|
|
send-maximum-quantity-per-day: 10
|
|
|
|
|
begin-code: 9999 # 这里配置 9999 的原因是,测试方便。
|
|
|
|
|
end-code: 9999 # 这里配置 9999 的原因是,测试方便。
|
2022-11-13 12:07:59 +08:00
|
|
|
|
trade:
|
|
|
|
|
order:
|
|
|
|
|
app-id: 1 # 商户编号
|
2023-09-26 19:27:37 +08:00
|
|
|
|
pay-expire-time: 2h # 支付的过期时间
|
|
|
|
|
receive-expire-time: 14d # 收货的过期时间
|
2023-09-26 23:50:54 +08:00
|
|
|
|
comment-expire-time: 7d # 评论的过期时间
|
2023-08-15 20:18:22 +08:00
|
|
|
|
express:
|
|
|
|
|
client: kd_niao
|
|
|
|
|
kd-niao:
|
|
|
|
|
api-key: cb022f1e-48f1-4c4a-a723-9001ac9676b8
|
|
|
|
|
business-id: 1809751
|
|
|
|
|
kd100:
|
|
|
|
|
key: pLXUGAwK5305
|
|
|
|
|
customer: E77DF18BE109F454A5CD319E44BF5177
|
2021-05-02 23:23:05 +08:00
|
|
|
|
|
|
|
|
|
debug: false
|
2022-07-10 18:08:26 +08:00
|
|
|
|
|
|
|
|
|
#积木报表配置
|
|
|
|
|
minidao :
|
|
|
|
|
base-package: org.jeecg.modules.jmreport.desreport.dao*
|
2022-07-28 09:29:51 +08:00
|
|
|
|
db-type: mysql
|