application.yml 3.6 KB

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