application.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. spring:
  2. # 数据源配置
  3. datasource:
  4. # 连接池类型
  5. type: com.alibaba.druid.pool.DruidDataSource
  6. # MYSQL 5 驱动:com.mysql.jdbc.Driver,MYSQL 6+ 驱动:com.mysql.cj.jdbc.Driver
  7. driver-class-name: com.mysql.cj.jdbc.Driver
  8. url: jdbc:mysql://115.159.38.225:3306/archives?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
  9. username: root
  10. password: abcd123456!@#
  11. # 连接池配置
  12. druid:
  13. # 初始化大小,最小,最大
  14. initial-size: 5
  15. min-idle: 5
  16. max-active: 20
  17. # 配置获取连接等待超时的时间
  18. max-wait: 60000
  19. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒
  20. time-between-eviction-runs-millis: 60000
  21. # 配置一个连接在池中最小生存时间
  22. min-evictable-idle-time-millis: 300000
  23. validation-query: SELECT 1
  24. test-while-idle: true
  25. test-on-borrow: false
  26. test-on-return: false
  27. # 打开 PSCache,并且指定每个连接上 PSCache 的大小
  28. pool-prepared-statements: true
  29. max-pool-prepared-statement-per-connection-size: 20
  30. # 配置监控统计拦截的 Filter,去掉后监控界面 SQL 无法统计,wall 用于防火墙
  31. filters: stat,wall,log4j
  32. # 通过 connection-properties 属性打开 mergeSql 功能;慢 SQL 记录
  33. connection-properties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  34. # 配置 DruidStatFilter
  35. web-stat-filter:
  36. enabled: true
  37. url-pattern: /*
  38. exclusions: .js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*
  39. # 配置 DruidStatViewServlet
  40. stat-view-servlet:
  41. # 开启监控页面
  42. enabled: true
  43. # 页面地址
  44. url-pattern: /druid/*
  45. # IP 白名单,没有配置或者为空,则允许所有访问
  46. allow: 127.0.0.1
  47. # IP 黑名单,若白名单也存在,则优先使用
  48. deny: 192.168.31.253
  49. # 禁用 HTML 中 Reset All 按钮
  50. reset-enable: false
  51. # 登录用户名/密码
  52. # login-username: admin
  53. # login-password: 123456
  54. elasticsearch:
  55. bboss:
  56. # elasticUser: elastic
  57. # elasticPassword: changeme
  58. elasticsearch:
  59. rest:
  60. hostNames: 192.168.0.190:9200
  61. ##hostNames: 192.168.8.25:9200,192.168.8.26:9200,192.168.8.27:9200 ##集群地址配置
  62. dateFormat: yyyy.MM.dd
  63. timeZone: Asia/Shanghai
  64. showTemplate: true
  65. discoverHost: false
  66. dslfile:
  67. refreshInterval: -1
  68. http:
  69. timeoutConnection: 5000
  70. timeoutSocket: 5000
  71. connectionRequestTimeout: 5000
  72. retryTime: 1
  73. maxLineLength: -1
  74. maxHeaderCount: 200
  75. maxTotal: 400
  76. defaultMaxPerRoute: 200
  77. soReuseAddress: false
  78. soKeepAlive: false
  79. timeToLive: 3600000
  80. keepAlive: 3600000
  81. keystore:
  82. keyPassword:
  83. hostnameVerifier: