application.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. # active: prod
  22. # 文件上传
  23. servlet:
  24. multipart:
  25. # 单个文件大小
  26. max-file-size: 900MB
  27. # 设置总上传的文件大小
  28. max-request-size: 900MB
  29. # 服务模块
  30. devtools:
  31. restart:
  32. # 热部署开关
  33. enabled: false
  34. # token配置
  35. token:
  36. # 令牌自定义标识
  37. header: Authorization
  38. # 令牌密钥
  39. secret: abcdefghijklmnopqrstuvwxyz
  40. # 令牌有效期(默认30分钟)
  41. expireTime: 720
  42. # MyBatis配置
  43. mybatis:
  44. # 搜索指定包别名
  45. typeAliasesPackage: com.ruoyi.**.domain
  46. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  47. mapperLocations: classpath*:mapper/**/*Mapper.xml
  48. # 加载全局的配置文件
  49. configLocation: classpath:mybatis/mybatis-config.xml
  50. # PageHelper分页插件
  51. pagehelper:
  52. helperDialect: mysql
  53. supportMethodsArguments: true
  54. params: count=countSql
  55. # Swagger配置
  56. swagger:
  57. # 是否开启swagger
  58. enabled: false
  59. # 请求前缀
  60. pathMapping: /dev-api
  61. # 防止XSS攻击
  62. xss:
  63. # 过滤开关
  64. enabled: true
  65. # 排除链接(多个用逗号分隔)
  66. excludes: /system/notice,/new/news,/new/news/put
  67. # 匹配链接
  68. urlPatterns: /system/*,/monitor/*,/tool/*