service-cart-local.properties 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. # cart 服务配置文件
  2. server.port = 8805
  3. # 开启调试信息
  4. eureka.instance.preferIpAddress = true
  5. endpoints.sensitive = true
  6. endpoints.info.enabled = true
  7. endpoints.restart.enabled = false
  8. endpoints.shutdown.enabled = false
  9. endpoints.health.enabled = true
  10. endpoints.flyway.enabled = false
  11. endpoints.logfile.enabled = true
  12. #log级别
  13. logging.level.root = INFO
  14. logging.level.cn.efunbox.afw.web.mvc.interceptor.AbstractRequestBodyInterceptor = DEBUG
  15. logging.level.cn.efunbox.api.impl = DEBUG
  16. #此配置建议只试用开发和测试环境
  17. #心跳间隔时间,默认是30秒
  18. eureka.instance.leaseRenewalIntervalInSeconds = 30
  19. #最后一次心跳时间后leaseExpirationDurationInSeconds秒就认为是下线了,默认是90秒
  20. eureka.instance.leaseExpirationDurationInSeconds = 90
  21. ## eureka客户端配置
  22. # 是否启用 eureka
  23. eureka.client.enabled = true
  24. # eureka 地址
  25. eureka.client.serviceUrl.defaultZone = http://127.0.0.1:8821/eureka/
  26. # 当前服务 是否注册到eureka
  27. # eureka.client.register-with-eureka = true
  28. #是否eureka服务器获取注册信息
  29. # eureka.client.fetch-registry: false
  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. ## redis 配置
  37. #spring.redis.host=192.168.1.86
  38. #spring.redis.port=6379
  39. #spring.redis.password=otttest
  40. spring.redis.host=192.168.1.151
  41. spring.redis.port=6379
  42. spring.redis.password=
  43. spring.redis.timeout=3000
  44. spring.redis.pool.max-idle=8
  45. spring.redis.pool.min-idle=0
  46. spring.redis.pool.max-active=8
  47. spring.redis.pool.max-wait=-1
  48. spring.redis.key.prefix=service.cart
  49. ## 数据源配置
  50. # 默认数据源
  51. afw.datasource.default = master
  52. # 激活数据源列表 起名规则slave_1...
  53. afw.datasource.active = master,slave
  54. # 主数据源
  55. afw.datasource.master.url = jdbc:mysql://localhost:3306/cloud_cart?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
  56. afw.datasource.master.username = root
  57. afw.datasource.master.password = 123456
  58. afw.datasource.master.initial_size = 10
  59. afw.datasource.master.min_idle = 10
  60. afw.datasource.master.max_active = 100
  61. afw.datasource.master.test_while_idle = true
  62. afw.datasource.master.max_wait = 60000
  63. afw.datasource.master.test_on_borrow=true
  64. afw.datasource.master.validation_query=SELECT 1;
  65. # 从数据源
  66. afw.datasource.slave.url = jdbc:mysql://localhost:3306/cloud_cart?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
  67. afw.datasource.slave.username = root
  68. afw.datasource.slave.password = 123456
  69. afw.datasource.slave.initial_size = 10
  70. afw.datasource.slave.min_idle = 10
  71. afw.datasource.slave.max_active = 100
  72. afw.datasource.slave.test_while_idle = true
  73. afw.datasource.slave.max_wait = 60000
  74. afw.datasource.slave.test_on_borrow=true
  75. afw.datasource.slave.validation_query=SELECT 1;
  76. # 打印sql
  77. spring.jpa.properties.hibernate.show_sql=true
  78. spring.jpa.properties.hibernate.format_sql=true