emis-backend/emis-server/src/main/resources/application_local.yml
2023-11-27 13:07:35 +08:00

184 lines
4.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 项目相关配置
pay:
# 名称
name: ddoms2
# 版本
version: 1.0.0
# 版权年份
copyrightYear: 2022
# 实例演示开关
demoEnabled: false
# profile: xdadan/uploadPath
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数组计算 char 字符验证
captchaType: char
# 开发环境配置
#server:
# # 服务器的HTTP端口,默认为8080
# port: 8080
# servlet:
# # 应用的访问路径
# context-path: /
# tomcat:
# # tomcat的URI编码
# uri-encoding: UTF-8
# # 连接数满后的排队数,默认为100
# accept-count: 1000
# threads:
# # tomcat最大线程数,默认为200
# max: 800
# # Tomcat启动初始化的线程数,默认值10
# min-spare: 100
# 日志配置
logging:
level:
com.xdadan: debug
org.springframework: warn
# Spring配置
spring:
# 资源信息
messages:
# 国际化资源文件路径
basename: i18n/messages
# profiles:
# active: druid
# 文件上传
servlet:
multipart:
# 单个文件大小
max-file-size: 1000MB
# 设置总上传的文件大小
max-request-size: 20000MB
cache:
# 指定所使用的缓存管理器
type: REDIS
cache-names: redisCache
redis:
cache-null-values: true
use-key-prefix: true
time-to-live: 0
# 服务模块
devtools:
restart:
# 热部署开关
enabled: true
# token配置
token:
# 令牌自定义标识
header: X-Token
# 令牌密钥
secret: 10942fd6f30d45a567e7ec84b18f9ca7c1
# 令牌有效期(默认30分钟)
expireTime: 30
# MyBatis配置
#mybatis:
# # 搜索指定包别名
# typeAliasesPackage: com.xdadan.**.domain
# # 配置mapper的扫描,找到所有的mapper.xml映射文件
# mapperLocations: classpath*:mapper/**/*Mapper.xml
# # 加载全局的配置文件
# configLocation: classpath:mybatis/mybatis-config.xml
mybatis-plus:
type-aliases-package: com.xdadan.**.domain
mapper-locations: classpath*:mapper/**/*Mapper.xml
config-location: classpath:mybatis/mybatis-config.xml
global-config:
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
id-type: 1
#驼峰下划线转换
db-column-underline: true
configuration:
#配置打印sql
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
saas:
tenant:
enable: true
column: tenant_id
filterTables:
ignoreTables:
- sys_account
- sys_account_log
- sys_api_log
- sys_appinfo
- sys_config
- sys_cost_time
- sys_dept
- sys_dict_data
- sys_dict_type
- sys_domain
- sys_dynamic_ds
- sys_dynamic_sql
- sys_file_info
- sys_i18n
- sys_im_friend
- sys_im_group
- sys_im_group_user
- sys_im_message
- sys_job
- sys_job_log
- sys_logininfor
- sys_mail_queue
- sys_menu
- sys_merchant
- sys_merchant_service
- sys_merchant_user_rel
- sys_mq_queues
- sys_notice
- sys_oper_log
- sys_post
- sys_role
- sys_role_dept
- sys_role_menu
- sys_role_merchant
- sys_role_tenant
- sys_sequence
- sys_service
- sys_storage
- sys_tenant
- sys_tenant_domain_apply
- sys_upapi_log
- sys_user
- sys_user_copy1
- sys_user_post
- sys_user_role
- sys_validate_record
- sys_zone_banner
- sys_zone_config
- sys_zone_nav
ignoreLoginNames:
- padmin
# PageHelper分页插件
pagehelper:
helperDialect: mysql
supportMethodsArguments: true
params: count=countSql
# Knife4j配置
knife4j:
# 是否开启增强模式
enable: true
basic:
enable: true
username: admin
password: 654321
setting:
language: zh-CN
# 防止XSS攻击
xss:
# 过滤开关
enabled: true
# 排除链接(多个用逗号分隔)
excludes: /system/notice
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*