application.yml 2.4 KB

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