application.yml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. # 项目相关配置
  2. vber:
  3. # 名称
  4. name: VberAdmin
  5. # 版本
  6. version: 1.0.0
  7. # 版权年份
  8. copyrightYear: 2023
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/vber/uploadPath,Linux配置 /home/vber/uploadPath)
  12. profile: D:/Project/TEST/J_V1.0/VberAdmin/UploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为8080
  20. port: 6060
  21. servlet:
  22. # 应用的访问路径
  23. context-path: /
  24. tomcat:
  25. # tomcat的URI编码
  26. uri-encoding: UTF-8
  27. # 连接数满后的排队数,默认为100
  28. accept-count: 1000
  29. threads:
  30. # tomcat最大线程数,默认为200
  31. max: 800
  32. # Tomcat启动初始化的线程数,默认值10
  33. min-spare: 100
  34. # 日志配置
  35. logging:
  36. level:
  37. com.vber: debug
  38. org.springframework: warn
  39. # 用户配置
  40. user:
  41. password:
  42. # 密码最大错误次数
  43. maxRetryCount: 5
  44. # 密码锁定时间(默认10分钟)
  45. lockTime: 10
  46. # Spring配置
  47. spring:
  48. # 数据源配置
  49. datasource:
  50. type: com.alibaba.druid.pool.DruidDataSource
  51. driverClassName: com.mysql.cj.jdbc.Driver
  52. druid:
  53. # 主库数据源
  54. master:
  55. url: jdbc:mysql://47.112.30.247:4501/VberTest_V1.0.0?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  56. username: root
  57. password: Iwb2023
  58. # 初始连接数
  59. initialSize: 5
  60. # 最小连接池数量
  61. minIdle: 10
  62. # 最大连接池数量
  63. maxActive: 20
  64. # 配置获取连接等待超时的时间
  65. maxWait: 60000
  66. # 配置连接超时时间
  67. connectTimeout: 30000
  68. # 配置网络超时时间
  69. socketTimeout: 60000
  70. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  71. timeBetweenEvictionRunsMillis: 60000
  72. # 配置一个连接在池中最小生存的时间,单位是毫秒
  73. minEvictableIdleTimeMillis: 300000
  74. # 配置一个连接在池中最大生存的时间,单位是毫秒
  75. maxEvictableIdleTimeMillis: 900000
  76. # 配置检测连接是否有效
  77. validationQuery: SELECT 1 FROM DUAL
  78. testWhileIdle: true
  79. testOnBorrow: false
  80. testOnReturn: false
  81. webStatFilter:
  82. enabled: true
  83. statViewServlet:
  84. enabled: true
  85. # 设置白名单,不填则允许所有访问
  86. allow:
  87. url-pattern: /druid/*
  88. # 控制台管理用户名和密码
  89. login-username: vber
  90. login-password: 123456
  91. filter:
  92. stat:
  93. enabled: true
  94. # 慢SQL记录
  95. log-slow-sql: true
  96. slow-sql-millis: 1000
  97. merge-sql: true
  98. wall:
  99. config:
  100. multi-statement-allow: true
  101. # 资源信息
  102. messages:
  103. # 国际化资源文件路径
  104. basename: i18n/messages
  105. # profiles:
  106. # active: druid
  107. # 文件上传
  108. servlet:
  109. multipart:
  110. # 单个文件大小
  111. max-file-size: 10MB
  112. # 设置总上传的文件大小
  113. max-request-size: 20MB
  114. # 服务模块
  115. devtools:
  116. restart:
  117. # 热部署开关
  118. enabled: true
  119. # redis 配置
  120. redis:
  121. # 地址
  122. host: 47.112.30.247
  123. # 端口,默认为6379
  124. port: 6399
  125. # 数据库索引
  126. database: 0
  127. # 密码
  128. password: Iwb-2017
  129. # 连接超时时间
  130. timeout: 10s
  131. lettuce:
  132. pool:
  133. # 连接池中的最小空闲连接
  134. min-idle: 0
  135. # 连接池中的最大空闲连接
  136. max-idle: 8
  137. # 连接池的最大数据库连接数
  138. max-active: 8
  139. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  140. max-wait: -1ms
  141. # token配置
  142. token:
  143. # 令牌自定义标识
  144. header: Authorization
  145. # 令牌密钥
  146. secret: abcdefghiwbnetqrstuvwxyzlm
  147. # 令牌有效期(默认30分钟)
  148. expireTime: 30
  149. # MyBatis配置
  150. mybatis:
  151. # 搜索指定包别名
  152. typeAliasesPackage: com.vber.**.domain
  153. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  154. mapperLocations: classpath*:mapper/**/*Mapper.xml
  155. # 加载全局的配置文件
  156. configLocation: classpath:mybatis/mybatis-config.xml
  157. # PageHelper分页插件
  158. pagehelper:
  159. helperDialect: mysql
  160. supportMethodsArguments: true
  161. params: count=countSql
  162. # Swagger配置
  163. swagger:
  164. # 是否开启swagger
  165. enabled: true
  166. # 请求前缀
  167. pathMapping: /dev-api
  168. # 防止XSS攻击
  169. xss:
  170. # 过滤开关
  171. enabled: true
  172. # 排除链接(多个用逗号分隔)
  173. excludes: /system/notice
  174. # 匹配链接
  175. urlPatterns: /system/*,/monitor/*