application.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. # 项目相关配置
  2. ruoyi:
  3. #名称
  4. name: RuoYi
  5. #版本
  6. version: 2.3.0
  7. #版权年份
  8. copyrightYear: 2018
  9. #头像上传路径
  10. profile: D:/profile/
  11. # 获取ip地址开关
  12. addressEnabled: true
  13. #开发环境配置
  14. server:
  15. #服务端口
  16. port: 80
  17. servlet:
  18. # 项目contextPath
  19. context-path: /
  20. tomcat:
  21. # tomcat的URI编码
  22. uri-encoding: UTF-8
  23. # tomcat最大线程数,默认为200
  24. max-threads: 800
  25. # Tomcat启动初始化的线程数,默认值25
  26. min-spare-threads: 30
  27. #日志配置
  28. logging:
  29. level:
  30. com.ruoyi: debug
  31. org.springframework: WARN
  32. org.spring.springboot.dao: debug
  33. #用户配置
  34. user:
  35. password:
  36. #密码错误{maxRetryCount}次锁定10分钟
  37. maxRetryCount: 5
  38. #Spring配置
  39. spring:
  40. thymeleaf:
  41. mode: HTML
  42. encoding: utf-8
  43. # 禁用缓存
  44. cache: false
  45. messages:
  46. #国际化资源文件路径
  47. basename: i18n/messages
  48. jackson:
  49. time-zone: GMT+8
  50. date-format: yyyy-MM-dd HH:mm:ss
  51. profiles:
  52. active: druid
  53. #文件上传
  54. servlet:
  55. multipart:
  56. max-file-size: 30MB
  57. max-request-size: 30MB
  58. devtools:
  59. restart:
  60. #热部署开关
  61. enabled: true
  62. # MyBatis
  63. mybatis:
  64. # 搜索指定包别名
  65. typeAliasesPackage: com.ruoyi.project
  66. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  67. mapperLocations: classpath:mybatis/**/*Mapper.xml
  68. # 加载全局的配置文件
  69. configLocation: classpath:mybatis/mybatis-config.xml
  70. # PageHelper
  71. pagehelper:
  72. helperDialect: mysql
  73. reasonable: true
  74. supportMethodsArguments: true
  75. params: count=countSql
  76. # Shiro
  77. shiro:
  78. user:
  79. # 登录地址
  80. loginUrl: /login
  81. # 权限认证失败地址
  82. unauthorizedUrl: /unauth
  83. # 首页地址
  84. indexUrl: /index
  85. # 验证码开关
  86. captchaEnabled: true
  87. # 验证码类型 math 数组计算 char 字符
  88. captchaType: math
  89. cookie:
  90. # 设置Cookie的域名 默认空,即当前访问的域名
  91. domain:
  92. # 设置cookie的有效访问路径
  93. path: /
  94. # 设置HttpOnly属性
  95. httpOnly: true
  96. # 设置Cookie的过期时间,天为单位
  97. maxAge: 30
  98. session:
  99. # Session超时时间(默认30分钟)
  100. expireTime: 30
  101. # 同步session到数据库的周期(默认1分钟)
  102. dbSyncPeriod: 1
  103. # 相隔多久检查一次session的有效性,默认就是10分钟
  104. validationInterval: 10
  105. # 防止XSS攻击
  106. xss:
  107. # 过滤开关
  108. enabled: true
  109. # 排除链接(多个用逗号分隔)
  110. excludes: /system/notice/*
  111. # 匹配链接
  112. urlPatterns: /system/*,/monitor/*,/tool/*
  113. # 代码生成
  114. gen:
  115. # 作者
  116. author: ruoyi
  117. # 默认生成包路径 module 需改成自己的模块名称 如 system monitor tool
  118. packageName: com.ruoyi.project.module
  119. # 自动去除表前缀,默认是true
  120. autoRemovePre: true
  121. # 表前缀(类名不会包含表前缀)
  122. tablePrefix: sys_