server:
|
port: 8081
|
tomcat:
|
uri-encoding: UTF-8
|
|
spring:
|
main:
|
allow-bean-definition-overriding: true
|
http:
|
encoding:
|
force: true
|
charset: UTF-8
|
enabled: true
|
data:
|
mongodb:
|
username: yeshi
|
password: Yeshi2016@
|
#172.16.16.44
|
#193.112.35.168
|
host: 193.112.35.168
|
port: 27016
|
database: lijin
|
authentication-database: admin
|
datasource:
|
#gz-cdb-r13d0yi9.sql.tencentcdb.com:62929
|
#172.16.16.17:3306
|
url: jdbc:mysql://gz-cdb-r13d0yi9.sql.tencentcdb.com:62929/ec_lijin?&useTimezone=true&serverTimezone=GMT%2B8
|
username: root
|
password: Yeshi2016@
|
driver-class-name: com.mysql.jdbc.Driver
|
type: com.alibaba.druid.pool.DruidDataSource
|
druid:
|
initial-size: 8
|
min-idle: 1
|
max-active: 20
|
max-wait: 60000
|
time-between-eviction-runsMillis: 60000
|
min-evictable-idle-timeMillis: 300000
|
validation-query: select 'x' FROM DUAL
|
test-while-idle: true
|
test-on-borrow: false
|
test-on-return: false
|
pool-prepared-statements: true
|
max-open-prepared-statements: 20
|
max-pool-prepared-statement-per-connection-size: 20
|
filters: stat
|
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
use-global-data-source-stat: true
|
|
|
redis:
|
#172.16.16.3
|
#193.112.34.40
|
host: 193.112.35.168
|
port: 6380
|
password: crs-43yhgz0i:Yeshi2016@
|
timeout: 5000ms
|
lettuce:
|
pool:
|
max-active: 1024
|
max-wait: 10000ms
|
max-idle: 200
|
time-between-eviction-runs: 60000ms
|
min-idle: 8
|
jedis:
|
pool:
|
max-wait: 10000ms
|
max-idle: 200
|
max-total: 1024
|
test_on_borrow: true
|
database: 4
|
|
mybatis:
|
mapper-locations : classpath:mapper/*.xml
|
type-aliases-package: com.ks.goldcorn.pojo.DO
|
configuration:
|
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
|
|
|
|
dubbo:
|
application:
|
name: lijin-provider
|
registry:
|
protocol: zookeeper
|
address: zookeeper://193.112.35.168:2182
|
client: curator
|
protocol:
|
name: dubbo
|
port: 20902
|
host: 192.168.3.122
|
scan:
|
base-packages: com.ks.lijin.service.remote
|
provider:
|
timeout: 10000
|
host: 127.0.0.1
|
xxl:
|
job:
|
accessToken:
|
executor:
|
appname: demo
|
ip:
|
logpath: /data/applogs/xxl-job/jobhandler
|
logretentiondays: -1
|
port: 9999
|
admin:
|
addresses: http://1.14.235.17:9000/xxl-job-admin
|
logging:
|
level:
|
com:
|
ks:
|
lijin:
|
mapper: debug
|
org.springframework.data.mongodb.core: DEBUG
|
|
|
log:
|
config:
|
kafka:
|
isSend: true
|
# kafka的地址,使用时必须配置
|
bootstrapServers: 172.16.16.38:9092
|
# 日志发往的topic,使用时必须配置
|
topic: log_service_lijin_info
|
# 批量上传数目,达到该数目后发送
|
batchSize: 5
|
# 间隔时间后发送,即使未达到批量上传最大数,间隔时间到了也会发送,单位为毫秒
|
lingerMs: 1000
|
# 数据压缩类型
|
compressionType: gzip
|
# 重试次数
|
retries: 3
|
#最大消息大小,此处设为5M
|
maxRequestSize: 5242880
|