application.yml 3.6 KB

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