application.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # 日志配置
  2. logging:
  3. level:
  4. com.ruoyi: debug
  5. org.springframework: warn
  6. # 用户配置
  7. user:
  8. password:
  9. # 密码最大错误次数
  10. maxRetryCount: 5
  11. # 密码锁定时间(默认10分钟)
  12. lockTime: 10
  13. # Spring配置
  14. spring:
  15. # 资源信息
  16. messages:
  17. # 国际化资源文件路径
  18. basename: i18n/messages
  19. profiles:
  20. active: druid
  21. # 文件上传
  22. servlet:
  23. multipart:
  24. # 单个文件大小
  25. max-file-size: 800MB
  26. # 设置总上传的文件大小
  27. max-request-size: 800MB
  28. # 服务模块
  29. devtools:
  30. restart:
  31. # 热部署开关
  32. enabled: true
  33. # token配置
  34. token:
  35. # 令牌自定义标识
  36. header: Authorization
  37. # 令牌密钥
  38. secret: abcdefghijklmnopqrstuvwxyza
  39. # 令牌有效期(默认30分钟)
  40. expireTime: 30
  41. # MyBatis配置
  42. mybatis:
  43. # 搜索指定包别名
  44. typeAliasesPackage: com.ruoyi.**.domain
  45. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  46. mapperLocations: classpath*:mapper/**/*Mapper.xml
  47. # 加载全局的配置文件
  48. configLocation: classpath:mybatis/mybatis-config.xml
  49. # PageHelper分页插件
  50. pagehelper:
  51. helperDialect: mysql
  52. supportMethodsArguments: true
  53. params: count=countSql
  54. # Swagger配置
  55. swagger:
  56. # 是否开启swagger
  57. enabled: false
  58. # 请求前缀
  59. pathMapping: /dev-api
  60. # 防止XSS攻击
  61. xss:
  62. # 过滤开关
  63. enabled: true
  64. # 排除链接(多个用逗号分隔)
  65. excludes: /system/notice
  66. # 匹配链接
  67. urlPatterns: /system/*,/monitor/*,/tool/*