123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- spring:
- # 数据源配置
- datasource:
- # 连接池类型
- type: com.alibaba.druid.pool.DruidDataSource
- # MYSQL 5 驱动:com.mysql.jdbc.Driver,MYSQL 6+ 驱动:com.mysql.cj.jdbc.Driver
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://115.159.38.225:3306/archives?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8
- username: root
- password: abcd123456!@#
- # 连接池配置
- druid:
- # 初始化大小,最小,最大
- initial-size: 5
- min-idle: 5
- max-active: 20
- # 配置获取连接等待超时的时间
- max-wait: 60000
- # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位毫秒
- time-between-eviction-runs-millis: 60000
- # 配置一个连接在池中最小生存时间
- min-evictable-idle-time-millis: 300000
- validation-query: SELECT 1
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- # 打开 PSCache,并且指定每个连接上 PSCache 的大小
- pool-prepared-statements: true
- max-pool-prepared-statement-per-connection-size: 20
- # 配置监控统计拦截的 Filter,去掉后监控界面 SQL 无法统计,wall 用于防火墙
- filters: stat,wall,log4j
- # 通过 connection-properties 属性打开 mergeSql 功能;慢 SQL 记录
- connection-properties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
- # 配置 DruidStatFilter
- web-stat-filter:
- enabled: true
- url-pattern: /*
- exclusions: .js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*
- # 配置 DruidStatViewServlet
- stat-view-servlet:
- # 开启监控页面
- enabled: true
- # 页面地址
- url-pattern: /druid/*
- # IP 白名单,没有配置或者为空,则允许所有访问
- allow: 127.0.0.1
- # IP 黑名单,若白名单也存在,则优先使用
- deny: 192.168.31.253
- # 禁用 HTML 中 Reset All 按钮
- reset-enable: false
- # 登录用户名/密码
- # login-username: admin
- # login-password: 123456
- elasticsearch:
- bboss:
- # elasticUser: elastic
- # elasticPassword: changeme
- elasticsearch:
- rest:
- hostNames: 192.168.0.190:9200
- ##hostNames: 192.168.8.25:9200,192.168.8.26:9200,192.168.8.27:9200 ##集群地址配置
- dateFormat: yyyy.MM.dd
- timeZone: Asia/Shanghai
- showTemplate: true
- discoverHost: false
- dslfile:
- refreshInterval: -1
- http:
- timeoutConnection: 5000
- timeoutSocket: 5000
- connectionRequestTimeout: 5000
- retryTime: 1
- maxLineLength: -1
- maxHeaderCount: 200
- maxTotal: 400
- defaultMaxPerRoute: 200
- soReuseAddress: false
- soKeepAlive: false
- timeToLive: 3600000
- keepAlive: 3600000
- keystore:
- keyPassword:
- hostnameVerifier:
|