application.yml 2.5 KB

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