service-datacenter-dev.properties 2.1 KB

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