# ucenter 服务配置文件 server.port = 8807 # 注册是使用真实IP eureka.instance.preferIpAddress = true # 开启调试信息 endpoints.sensitive = true endpoints.info.enabled = true endpoints.restart.enabled = false endpoints.shutdown.enabled = false endpoints.health.enabled = true endpoints.flyway.enabled = false endpoints.logfile.enabled = true #log级别 logging.level.root = INFO logging.level.cn.efunbox.afw.web.mvc.interceptor.AbstractRequestBodyInterceptor = DEBUG logging.level.cn.efunbox.api.impl = DEBUG #此配置建议只试用开发和测试环境 #心跳间隔时间,默认是30秒 eureka.instance.leaseRenewalIntervalInSeconds = 30 #最后一次心跳时间后leaseExpirationDurationInSeconds秒就认为是下线了,默认是90秒 eureka.instance.leaseExpirationDurationInSeconds = 90 ## eureka客户端配置 # 是否启用 eureka eureka.client.enabled = true # eureka 地址 # 开启安全 #eureka.client.serviceUrl.defaultZone=http://admin:admin123@eureka.efunbox.cn:8761/eureka/ # 非安全地址 eureka.client.serviceUrl.defaultZone = http://eureka.efunbox.cn:8761/eureka/ # hystrix超时时间 hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds = 10000 # hystrix线程数 hystrix.threadpool.default.coreSize = 5000 # hystrix队列数 hystrix.threadpool.default.maxQueueSize = -1 # mongodb 3.x spring.data.mongodb.uri=mongodb://mongo.efunbox.cn:27017/cloud_data_center # 需要密码 #spring.data.mongodb.uri=mongodb://name:pass@mongo.efunbox.cn:27017/cloud_data_center #多个IP集群可以采用以下配置: #spring.data.mongodb.uri=mongodb://user:pwd@ip1:port1,ip2:port2/database # 主数据源 afw.datasource.master.url = jdbc:mysql://192.168.1.96:3306/cloud_item?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true afw.datasource.master.username = root afw.datasource.master.password = Efunbox^^2015$ afw.datasource.master.initial_size = 10 afw.datasource.master.min_idle = 10 afw.datasource.master.max_active = 100 afw.datasource.master.test_while_idle = true afw.datasource.master.max_wait = 60000 afw.datasource.master.test_on_borrow=true afw.datasource.master.validation_query=SELECT 1;