service-ucenter-local.properties 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # ucenter 服务配置文件
  2. server.port = 8800
  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://127.0.0.1:8821/eureka/
  30. # 当前服务 是否注册到eureka
  31. # eureka.client.register-with-eureka = true
  32. #是否eureka服务器获取注册信息
  33. #eureka.client.fetch-registry = true
  34. # hystrix超时时间
  35. hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds = 10000
  36. # hystrix线程数
  37. hystrix.threadpool.default.coreSize = 5000
  38. # hystrix队列数
  39. hystrix.threadpool.default.maxQueueSize = -1
  40. ## redis 配置
  41. #spring.redis.host=192.168.1.86
  42. #spring.redis.port=6379
  43. #spring.redis.password=otttest
  44. spring.redis.host=192.168.1.151
  45. spring.redis.port=6379
  46. spring.redis.password=
  47. spring.redis.timeout=3000
  48. spring.redis.pool.max-idle=8
  49. spring.redis.pool.min-idle=0
  50. spring.redis.pool.max-active=8
  51. spring.redis.pool.max-wait=-1
  52. spring.redis.key.prefix=service.ucenter
  53. ## 数据源配置
  54. # 默认数据源
  55. afw.datasource.default = master
  56. # 激活数据源列表 起名规则slave_1...
  57. afw.datasource.active = master,slave
  58. # 主数据源
  59. afw.datasource.master.url = jdbc:mysql://localhost:3306/cloud_user?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
  60. afw.datasource.master.username = root
  61. afw.datasource.master.password = 123456
  62. afw.datasource.master.initial_size = 10
  63. afw.datasource.master.min_idle = 10
  64. afw.datasource.master.max_active = 100
  65. afw.datasource.master.test_while_idle = true
  66. afw.datasource.master.max_wait = 60000
  67. afw.datasource.master.test_on_borrow=true
  68. afw.datasource.master.validation_query=SELECT 1;
  69. # 从数据源
  70. afw.datasource.slave.url = jdbc:mysql://localhost:3306/cloud_user?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
  71. afw.datasource.slave.username = root
  72. afw.datasource.slave.password = 123456
  73. afw.datasource.slave.initial_size = 10
  74. afw.datasource.slave.min_idle = 10
  75. afw.datasource.slave.max_active = 300
  76. afw.datasource.slave.test_while_idle = true
  77. afw.datasource.slave.max_wait = 60000
  78. afw.datasource.slave.test_on_borrow=true
  79. afw.datasource.slave.validation_query=SELECT 1;
  80. # 打印sql
  81. spring.jpa.properties.hibernate.show_sql=true
  82. spring.jpa.properties.hibernate.format_sql=true