application.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 3.0.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. # 模板引擎
  41. thymeleaf:
  42. mode: HTML
  43. encoding: utf-8
  44. # 禁用缓存
  45. cache: false
  46. # 资源信息
  47. messages:
  48. # 国际化资源文件路径
  49. basename: i18n/messages
  50. jackson:
  51. time-zone: GMT+8
  52. date-format: yyyy-MM-dd HH:mm:ss
  53. profiles:
  54. active: druid
  55. # 文件上传
  56. servlet:
  57. multipart:
  58. max-file-size: 30MB
  59. max-request-size: 30MB
  60. # 服务模块
  61. devtools:
  62. restart:
  63. # 热部署开关
  64. enabled: true
  65. # MyBatis
  66. mybatis:
  67. # 搜索指定包别名
  68. typeAliasesPackage: com.ruoyi
  69. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  70. mapperLocations: classpath*:mapper/**/*Mapper.xml
  71. # 加载全局的配置文件
  72. configLocation: classpath:mapper/mybatis-config.xml
  73. # PageHelper分页插件
  74. pagehelper:
  75. helperDialect: mysql
  76. reasonable: true
  77. supportMethodsArguments: true
  78. params: count=countSql
  79. # Shiro
  80. shiro:
  81. user:
  82. # 登录地址
  83. loginUrl: /login
  84. # 权限认证失败地址
  85. unauthorizedUrl: /unauth
  86. # 首页地址
  87. indexUrl: /index
  88. # 验证码开关
  89. captchaEnabled: true
  90. # 验证码类型 math 数组计算 char 字符
  91. captchaType: math
  92. cookie:
  93. # 设置Cookie的域名 默认空,即当前访问的域名
  94. domain:
  95. # 设置cookie的有效访问路径
  96. path: /
  97. # 设置HttpOnly属性
  98. httpOnly: true
  99. # 设置Cookie的过期时间,天为单位
  100. maxAge: 30
  101. session:
  102. # Session超时时间(默认30分钟)
  103. expireTime: 30
  104. # 同步session到数据库的周期(默认1分钟)
  105. dbSyncPeriod: 1
  106. # 相隔多久检查一次session的有效性,默认就是10分钟
  107. validationInterval: 10
  108. # 防止XSS攻击
  109. xss:
  110. # 过滤开关
  111. enabled: true
  112. # 排除链接(多个用逗号分隔)
  113. excludes: /system/notice/*
  114. # 匹配链接
  115. urlPatterns: /system/*,/monitor/*,/tool/*
  116. # 代码生成
  117. gen:
  118. # 作者
  119. author: ruoyi
  120. # 默认生成包路径 module 需改成自己的模块名称 如 system monitor tool
  121. packageName: com.ruoyi.module
  122. # 自动去除表前缀,默认是true
  123. autoRemovePre: true
  124. # 表前缀(类名不会包含表前缀)
  125. tablePrefix: sys_