application.yml 3.2 KB

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