application.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 3.8.5
  7. # 版权年份
  8. copyrightYear: 2023
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  12. profile: /Users/zrwj/Desktop/ZKQY_LJJ/log/file/
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # 流程文件存储地址
  18. bpmnPath: /Users/zrwj/Desktop/ZKQY_LJJ/log/file/bpmnXML/
  19. # 开发环境配置
  20. server:
  21. # 服务器的HTTP端口,默认为8080
  22. port: 8055
  23. servlet:
  24. # 应用的访问路径
  25. context-path: /
  26. tomcat:
  27. # tomcat的URI编码
  28. uri-encoding: UTF-8
  29. # 连接数满后的排队数,默认为100
  30. accept-count: 1000
  31. threads:
  32. # tomcat最大线程数,默认为200
  33. max: 800
  34. # Tomcat启动初始化的线程数,默认值10
  35. min-spare: 100
  36. # 日志配置
  37. logging:
  38. level:
  39. com.ruoyi: debug
  40. org.springframework: warn
  41. # 用户配置
  42. user:
  43. password:
  44. # 密码最大错误次数
  45. maxRetryCount: 5
  46. # 密码锁定时间(默认10分钟)
  47. lockTime: 10
  48. # Spring配置
  49. spring:
  50. # 开启AOP切面理论拦截
  51. aop:
  52. auto: true
  53. # 格式化时间
  54. jackson:
  55. date-format: yyyy-MM-dd HH:mm:ss
  56. time-zone: GMT+8
  57. # 资源信息
  58. messages:
  59. # 国际化资源文件路径
  60. basename: i18n/messages
  61. profiles:
  62. active: druid
  63. # 文件上传
  64. servlet:
  65. multipart:
  66. # 单个文件大小
  67. max-file-size: 10MB
  68. # 设置总上传的文件大小
  69. max-request-size: 20MB
  70. main:
  71. allow-bean-definition-overriding: true
  72. # 服务模块
  73. devtools:
  74. restart:
  75. # 热部署开关
  76. enabled: true
  77. # redis 配置
  78. redis:
  79. # 地址
  80. host: 192.168.110.15
  81. # 端口,默认为6379
  82. port: 6379
  83. # 数据库索引
  84. database: 0
  85. # 密码
  86. password:
  87. # 连接超时时间
  88. timeout: 10s
  89. lettuce:
  90. pool:
  91. # 连接池中的最小空闲连接
  92. min-idle: 0
  93. # 连接池中的最大空闲连接
  94. max-idle: 8
  95. # 连接池的最大数据库连接数
  96. max-active: 8
  97. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  98. max-wait: -1ms
  99. # token配置
  100. token:
  101. # 令牌自定义标识
  102. header: Authorization
  103. # 令牌密钥
  104. secret: abcdefghijklmnopqrstuvwxyz
  105. # 令牌有效期(默认30分钟)
  106. expireTime: 30
  107. # MyBatis配置
  108. mybatis:
  109. # 搜索指定包别名
  110. typeAliasesPackage: com.ruoyi.**.domain
  111. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  112. mapperLocations: classpath*:mapper/**/*Mapper.xml
  113. # 加载全局的配置文件
  114. configLocation: classpath:mybatis/mybatis-config.xml
  115. # PageHelper分页插件
  116. pagehelper:
  117. helperDialect: mysql
  118. supportMethodsArguments: true
  119. params: count=countSql
  120. # 启用多数据源分页
  121. auto-dialect: true
  122. auto-runtime-dialect: true
  123. # Swagger配置
  124. swagger:
  125. # 是否开启swagger
  126. enabled: true
  127. # 请求前缀
  128. pathMapping: /dev-api
  129. # 防止XSS攻击
  130. xss:
  131. # 过滤开关
  132. enabled: true
  133. # 排除链接(多个用逗号分隔)
  134. excludes: /system/notice
  135. # 匹配链接
  136. urlPatterns: /system/*,/monitor/*,/tool/*