application.yml 3.5 KB

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