application.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # 日志配置
  2. logging:
  3. level:
  4. com.ruoyi: debug
  5. org.springframework: warn
  6. # 用户配置
  7. user:
  8. password:
  9. # 密码错误{maxRetryCount}次锁定10分钟
  10. maxRetryCount: 5
  11. # Spring配置
  12. spring:
  13. # 模板引擎
  14. thymeleaf:
  15. mode: HTML
  16. encoding: utf-8
  17. # 禁用缓存
  18. cache: false
  19. # 资源信息
  20. messages:
  21. # 国际化资源文件路径
  22. basename: static/i18n/messages
  23. jackson:
  24. time-zone: GMT+8
  25. date-format: yyyy-MM-dd HH:mm:ss
  26. profiles:
  27. # active: druid
  28. active: dev
  29. # 文件上传
  30. servlet:
  31. multipart:
  32. # 单个文件大小
  33. max-file-size: 10MB
  34. # 设置总上传的文件大小
  35. max-request-size: 20MB
  36. # 服务模块
  37. devtools:
  38. restart:
  39. # 热部署开关
  40. enabled: true
  41. # MyBatis
  42. mybatis:
  43. # 搜索指定包别名
  44. typeAliasesPackage: com.ruoyi.**.domain
  45. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  46. mapperLocations: classpath*:mapper/**/*Mapper.xml
  47. # 加载全局的配置文件
  48. configLocation: classpath:mybatis/mybatis-config.xml
  49. # PageHelper分页插件
  50. pagehelper:
  51. helperDialect: mysql
  52. supportMethodsArguments: true
  53. params: count=countSql
  54. # Shiro
  55. shiro:
  56. user:
  57. # 登录地址
  58. loginUrl: /login
  59. # 权限认证失败地址
  60. unauthorizedUrl: /unauth
  61. # 首页地址
  62. indexUrl: /index
  63. # 验证码开关
  64. captchaEnabled: true
  65. # 验证码类型 math 数组计算 char 字符
  66. captchaType: math
  67. cookie:
  68. # 设置Cookie的域名 默认空,即当前访问的域名
  69. domain:
  70. # 设置cookie的有效访问路径
  71. path: /
  72. # 设置HttpOnly属性
  73. httpOnly: true
  74. # 设置Cookie的过期时间,天为单位
  75. maxAge: 30
  76. # 设置密钥,务必保持唯一性(生成方式,直接拷贝到main运行即可)Base64.encodeToString(CipherUtils.generateNewKey(128, "AES").getEncoded()) (默认启动生成随机秘钥,随机秘钥会导致之前客户端RememberMe Cookie无效,如设置固定秘钥RememberMe Cookie则有效)
  77. cipherKey:
  78. session:
  79. # Session超时时间,-1代表永不过期(默认30分钟)
  80. expireTime: 30
  81. # 同步session到数据库的周期(默认1分钟)
  82. dbSyncPeriod: 1
  83. # 相隔多久检查一次session的有效性,默认就是10分钟
  84. validationInterval: 10
  85. # 同一个用户最大会话数,比如2的意思是同一个账号允许最多同时两个人登录(默认-1不限制)
  86. maxSession: -1
  87. # 踢出之前登录的/之后登录的用户,默认踢出之前登录的用户
  88. kickoutAfter: false
  89. rememberMe:
  90. # 是否开启记住我
  91. enabled: true
  92. # 防止XSS攻击
  93. xss:
  94. # 过滤开关
  95. enabled: true
  96. # 排除链接(多个用逗号分隔)
  97. excludes: /system/notice/*
  98. # 匹配链接
  99. urlPatterns: /system/*,/monitor/*,/tool/*
  100. # Swagger配置
  101. swagger:
  102. # 是否开启swagger
  103. enabled: true