application.yml 2.49 KB
spring:
  profiles:
    active: druid
---
#项目相关配置
huaheng:
  name: huaheng
  version: 4.0.0
  copyrightYear: 2021
  profile: /home/uploadPath
  apkpath: /home/uploadPath/apk/
  addressEnabled: false

#服务端口、项目contextPath
server:
  tomcat:
    uri-encoding: UTF-8
    max-threads: 800
    min-spare-threads: 30
  port: 8888
  servlet:
    context-path: /wms

# 用户配置
user:
  password:
    maxRetryCount: 5

# Spring配置
spring:
  mvc:
    static-path-pattern: /**
  resources:
    static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/
    cache:
      period: 3600
  http:
    encoding:
      charset: utf-8
      enabled: true
      force: true
  # 模板引擎(生产环境开启缓存)
  thymeleaf:
    mode: HTML
    encoding: utf-8
    cache: true
  #国际化资源文件路径
  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热部署(核心优化)
  devtools:
    restart:
      enabled: false
      additional-exclude: /**/*
  # 邮箱配置
  mail:
    host: smtp.qq.com
    username: 752432958@qq.com
    password: owobzjvlgsxrbdfe
    default-encoding: utf-8
  # redis 配置(缩短超时,减少阻塞)
  redis:
    host: localhost
    port: 6379
    password:
    timeout: 3s
    lettuce:
      pool:
        min-idle: 0
        max-idle: 8
        max-active: 8
        max-wait: 1s
      shutdown-timeout: 100ms
    client-type: lettuce
    connect-timeout: 1s

mybatis-plus:
  mapper-locations: classpath:mybatis/**/*.xml
  type-aliases-package: com.huaheng.pc.**.**.domain
  global-config:
    db-config:
      logic-delete-value: 0
      logic-not-delete-value: 1

# PageHelper分页插件
pagehelper:
  helperDialect: mysql
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql

# Shiro
shiro:
  user:
    loginUrl: /login
    unauthorizedUrl: /unauth
    indexUrl: /index
    captchaEnabled: false
    captchaType: math
  cookie:
    domain:
    path: /
    httpOnly: true
    maxAge: -1
  session:
    expireTime: -1
    dbSyncPeriod: 5
    validationInterval: 30

# 防止XSS攻击
xss:
  enabled: true
  excludes: /system/notice/*
  urlPatterns: /system/*,/monitor/*,/tool/*

#系统日志地址(适配Linux路径)
log:
  path: /home/WMSlog