application.yml 3.9 KB

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