spring: profiles: active: druid --- #项目相关配置 #名称 huaheng: name: huaheng #版本 version: 4.0.0 #版权年份 copyrightYear: 2020 # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) profile: D:/Huaheng/uploadPath/ # apk路径 apkpath: D:/Huaheng/uploadPath/apk/ # 获取ip地址开关 addressEnabled: false #服务端口、项目contextPath server: tomcat: uri-encoding: UTF-8 # tomcat最大线程数,默认为200 max-threads: 800 # Tomcat启动初始化的线程数,默认值25 min-spare-threads: 30 undertow: # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程 io-threads: 4 # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载 worker-threads: 20 # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理 # 每块buffer的空间大小,越小的空间被利用越充分 buffer-size: 1024 # 是否分配的直接内存 direct-buffers: true port: 8888 servlet: context-path: /wms ssl: # 证书别名 key-alias: wms # 证书位置 key-store: classpath:keystore.p12 # 证书密码 key-store-password: wms!@#. key-store-type: PKCS12 # https启用开关 enabled: false # 用户配置 user: password: # 密码错误{maxRetryCount}次锁定10分钟 maxRetryCount: 5 # Spring配置 spring: mvc: static-path-pattern: /** resources: static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${huaheng.profile} http: encoding: charset: utf-8 enabled: true force: true # 模板引擎 thymeleaf: mode: HTML encoding: utf-8 # 禁用缓存 cache: false #国际化资源文件路径 messages: basename: i18n/messages jackson: time-zone: GMT+8 date-format: yyyy-MM-dd HH:mm:ss profiles: active: dev property-naming-strategy: LOWER_CAMEL_CASE # 文件上传 servlet: multipart: # 单个文件大小 max-file-size: 100MB # 设置总上传的文件大小 max-request-size: 100MB # 服务模块 devtools: restart: # 热部署开关 enabled: true # 邮箱配置 mail: # 邮箱服务器 host: smtp.qq.com # 邮箱账号 username: 752432958@qq.com # 邮箱密码 password: owobzjvlgsxrbdfe # 编码类型 default-encoding: utf-8 # redis 配置 redis: # 地址 host: localhost # 端口,默认为6379 port: 6379 # 密码 password: # 连接超时时间 timeout: 10s lettuce: pool: # 连接池中的最小空闲连接 min-idle: 0 # 连接池中的最大空闲连接 max-idle: 8 # 连接池的最大数据库连接数 max-active: 8 # #连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1ms mybatis-plus: mapper-locations: classpath:mybatis/**/*.xml type-aliases-package: com.huaheng.pc.**.**.domain global-config: db-config: logic-delete-value: 0 # 逻辑已删除值(默认为 1) logic-not-delete-value: 1 # 逻辑未删除值(默认为 0) # PageHelper分页插件 pagehelper: helperDialect: mysql reasonable: true supportMethodsArguments: true params: count=countSql # Shiro shiro: user: # 登录地址 loginUrl: /login # 权限认证失败地址 unauthorizedUrl: /unauth # 首页地址 indexUrl: /index # 验证码开关 captchaEnabled: false # 验证码类型 math 数组计算 char 字符 captchaType: math cookie: # 设置Cookie的域名 默认空,即当前访问的域名 domain: # 设置cookie的有效访问路径 path: / # 设置HttpOnly属性 httpOnly: true # 设置Cookie的过期时间,天为单位 maxAge: -1 session: # Session超时时间(默认30分钟) expireTime: -1 # 同步session到数据库的周期(默认1分钟) dbSyncPeriod: 1 # 相隔多久检查一次session的有效性,默认就是10分钟 validationInterval: 10 # 防止XSS攻击 xss: # 过滤开关 enabled: true # 排除链接(多个用逗号分隔) excludes: /system/notice/* # 匹配链接 urlPatterns: /system/*,/monitor/*,/tool/* # 代码生成 # 作者 gen: author: huaheng # 默认生成包路径 module 需改成自己的模块名称 如 system monitor tool packageName: com.huaheng.pc.task # 自动去除表前缀,默认是true autoRemovePre: false # 表前缀(类名不会包含表前缀) gen.tablePrefix: sys_