application.yml 4.08 KB
#\u9879\u76EE\u76F8\u5173\u914D\u7F6E
#\u540D\u79F0
huaheng:
  name: huaheng
#\u7248\u672C
  version: 4.0.0
#\u7248\u6743\u5E74\u4EFD
  copyrightYear: 2018
# \u6587\u4EF6\u8DEF\u5F84 \u793A\u4F8B\uFF08 Windows\u914D\u7F6ED:/ruoyi/uploadPath\uFF0CLinux\u914D\u7F6E /home/ruoyi/uploadPath\uFF09
  profile: D:/ruoyi/uploadPath
# \u83B7\u53D6ip\u5730\u5740\u5F00\u5173
  addressEnabled: false

#\u5F00\u53D1\u73AF\u5883\u914D\u7F6E
#\u6D4B\u8BD5\u670D\u52A1\u7AEF\u53E3\u3001\u6D4B\u8BD5\u9879\u76EEcontextPath
server:
  port: 8888
  servlet:
    context-path: /twms/
#\u793A\u4F8B\u670D\u52A1\u7AEF\u53E3\u3001\u793A\u4F8B\u9879\u76EEcontextPath
#server.port=8889
#server.servlet.context-path=/ewms/
#\u6B63\u5F0F\u670D\u52A1\u7AEF\u53E3\u3001\u6B63\u5F0F\u9879\u76EEcontextPath
#server.port=8016
#server.servlet.context-path=/wms/
# tomcat\u7684URI\u7F16\u7801
  tomcat:
    uri-encoding: UTF-8
# tomcat\u6700\u5927\u7EBF\u7A0B\u6570\uFF0C\u9ED8\u8BA4\u4E3A200
    max-threads: 800
# Tomcat\u542F\u52A8\u521D\u59CB\u5316\u7684\u7EBF\u7A0B\u6570\uFF0C\u9ED8\u8BA4\u503C25
    min-spare-threads: 30

#\u65E5\u5FD7\u914D\u7F6E
logging:
  level:
    com.huaheng: debug
    org.springframework: warn
    spring.springboot.dao: DEBUG

# \u7528\u6237\u914D\u7F6E
user:
  password:
    # \u5BC6\u7801\u9519\u8BEF{maxRetryCount}\u6B21\u9501\u5B9A10\u5206\u949F
    maxRetryCount: 5

# Spring\u914D\u7F6E
spring:
  # \u6A21\u677F\u5F15\u64CE
  thymeleaf:
    mode: HTML
    encoding: utf-8
    # \u7981\u7528\u7F13\u5B58
    cache: false
#\u56FD\u9645\u5316\u8D44\u6E90\u6587\u4EF6\u8DEF\u5F84
  messages:
    basename: i18n/messages
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
  profiles:
    active: druid
  # \u6587\u4EF6\u4E0A\u4F20
  servlet:
    multipart:
      # \u5355\u4E2A\u6587\u4EF6\u5927\u5C0F
      max-file-size:  30MB
      # \u8BBE\u7F6E\u603B\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F
      max-request-size:  30MB
  # \u670D\u52A1\u6A21\u5757
  devtools:
    restart:
      # \u70ED\u90E8\u7F72\u5F00\u5173
      enabled: true

mybatis-plus:
  mapper-locations: classpath:mybatis/**/*.xml
  type-aliases-package: com.huaheng.pc.**.**.domain

# PageHelper\u5206\u9875\u63D2\u4EF6
pagehelper:
  helperDialect: mysql
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql

# Shiro
shiro:
  user:
    # \u767B\u5F55\u5730\u5740
    loginUrl: /login
    # \u6743\u9650\u8BA4\u8BC1\u5931\u8D25\u5730\u5740
    unauthorizedUrl: /unauth
    # \u9996\u9875\u5730\u5740
    indexUrl: /index
    # \u9A8C\u8BC1\u7801\u5F00\u5173
    captchaEnabled: false
    # \u9A8C\u8BC1\u7801\u7C7B\u578B math \u6570\u7EC4\u8BA1\u7B97 char \u5B57\u7B26
    captchaType: math
  cookie:
    # \u8BBE\u7F6ECookie\u7684\u57DF\u540D \u9ED8\u8BA4\u7A7A\uFF0C\u5373\u5F53\u524D\u8BBF\u95EE\u7684\u57DF\u540D
    domain:
    # \u8BBE\u7F6Ecookie\u7684\u6709\u6548\u8BBF\u95EE\u8DEF\u5F84
    path: /
    # \u8BBE\u7F6EHttpOnly\u5C5E\u6027
    httpOnly: true
    # \u8BBE\u7F6ECookie\u7684\u8FC7\u671F\u65F6\u95F4\uFF0C\u5929\u4E3A\u5355\u4F4D
    maxAge: 30
  session:
    # Session\u8D85\u65F6\u65F6\u95F4\uFF08\u9ED8\u8BA430\u5206\u949F\uFF09
    expireTime: 30
    # \u540C\u6B65session\u5230\u6570\u636E\u5E93\u7684\u5468\u671F\uFF08\u9ED8\u8BA41\u5206\u949F\uFF09
    dbSyncPeriod: 1
    # \u76F8\u9694\u591A\u4E45\u68C0\u67E5\u4E00\u6B21session\u7684\u6709\u6548\u6027\uFF0C\u9ED8\u8BA4\u5C31\u662F10\u5206\u949F
    validationInterval: 10

# \u9632\u6B62XSS\u653B\u51FB
xss:
  # \u8FC7\u6EE4\u5F00\u5173
  enabled: true
  # \u6392\u9664\u94FE\u63A5\uFF08\u591A\u4E2A\u7528\u9017\u53F7\u5206\u9694\uFF09
  excludes: /system/notice/*
  # \u5339\u914D\u94FE\u63A5
  urlPatterns: /system/*,/monitor/*,/tool/*

# \u4EE3\u7801\u751F\u6210
# \u4F5C\u8005
gen:
  author: huaheng
# \u9ED8\u8BA4\u751F\u6210\u5305\u8DEF\u5F84 module \u9700\u6539\u6210\u81EA\u5DF1\u7684\u6A21\u5757\u540D\u79F0 \u5982 system monitor tool
  packageName: com.huaheng.pc.task
# \u81EA\u52A8\u53BB\u9664\u8868\u524D\u7F00\uFF0C\u9ED8\u8BA4\u662Ftrue
  autoRemovePre: false
# \u8868\u524D\u7F00(\u7C7B\u540D\u4E0D\u4F1A\u5305\u542B\u8868\u524D\u7F00)
  gen.tablePrefix: sys_