12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- server:
- port: 7011
- servlet:
- context-path: /
- spring:
- main:
- allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册
- #redis集群
- redis:
- host: 192.168.2.202
- port: 6379
- timeout: 100000
- # 集群环境打开下面注释,单机不需要打开
- # cluster:
- # 集群信息
- # nodes: xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx,xxx.xxx.xxx.xxx:xxxx
- # #默认值是5 一般当此值设置过大时,容易报:Too many Cluster redirections
- # maxRedirects: 3
- password:
- application:
- name: test
- jedis:
- pool:
- max-active: 8
- min-idle: 0
- max-idle: 8
- max-wait: -1
- database: 19
- datasource:
- type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: oracle.jdbc.OracleDriver
- #外网
- url: jdbc:oracle:thin:@192.168.2.215:1521:gdsj
- username: gdprod
- password: gd123
- oracle-schema=:
- # type: com.alibaba.druid.pool.DruidDataSource
- # url: jdbc:mysql://127.0.0.1:3306/test?characterEncoding=utf8&serverTimezone=UTC
- # username: root
- # password: root
- # driver-class-name: com.mysql.jdbc.Driver
- druid:
- max-active: 20
- initial-size: 1
- min-idle: 3
- max-wait: 60000
- time-between-eviction-runs-millis: 60000
- min-evictable-idle-time-millis: 300000
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
|