iaas-user-local.properties 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ## eureka客户端配置
  2. # 注册是使用真实IP
  3. eureka.instance.preferIpAddress = true
  4. # 是否启用 eureka
  5. eureka.client.enabled = true
  6. # eureka 地址
  7. #eureka.client.serviceUrl.defaultZone = http://eureka1:8766/eureka/,http://eureka2:8767/eureka,http://eureka3:8768/eureka
  8. eureka.client.serviceUrl.defaultZone = http://127.0.0.1:8821/eureka/
  9. # 是否注册到eureka
  10. eureka.client.register-with-eureka = true
  11. # 是否从eureka服务器获取注册信息
  12. eureka.client.fetch-registry = true
  13. ## redis 配置
  14. #spring.redis.host=r-2zee62341d4d38f4.redis.rds.aliyuncs.com
  15. #spring.redis.port=6379
  16. #spring.redis.password=Efun20170407
  17. spring.redis.host=192.168.1.151
  18. spring.redis.port=6379
  19. spring.redis.password=
  20. spring.redis.timeout=3000
  21. spring.redis.pool.max-idle=8
  22. spring.redis.pool.min-idle=0
  23. spring.redis.pool.max-active=8
  24. spring.redis.pool.max-wait=-1
  25. spring.redis.key.prefix=service.user
  26. ## 数据源配置
  27. # 默认数据源
  28. afw.datasource.default = master
  29. # 激活数据源列表 起名规则slave_1...
  30. afw.datasource.active = master,slave
  31. # 主数据源
  32. afw.datasource.master.url = jdbc:mysql://localhost:3306/iaas_user?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
  33. afw.datasource.master.username = root
  34. afw.datasource.master.password = 123456
  35. afw.datasource.master.initial_size = 10
  36. afw.datasource.master.min_idle = 10
  37. afw.datasource.master.max_active = 100
  38. afw.datasource.master.test_while_idle = true
  39. afw.datasource.master.max_wait = 60000
  40. afw.datasource.master.test_on_borrow=true
  41. afw.datasource.master.validation_query=SELECT 1;
  42. # 从数据源
  43. afw.datasource.slave.url = jdbc:mysql://localhost:3306/iaas_user?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
  44. afw.datasource.slave.username = root
  45. afw.datasource.slave.password = 123456
  46. afw.datasource.slave.initial_size = 10
  47. afw.datasource.slave.min_idle = 10
  48. afw.datasource.slave.max_active = 100
  49. afw.datasource.slave.test_while_idle = true
  50. afw.datasource.slave.max_wait = 60000
  51. afw.datasource.slave.test_on_borrow=true
  52. afw.datasource.slave.validation_query=SELECT 1;
  53. # 打印sql
  54. spring.jpa.properties.hibernate.show_sql=true
  55. spring.jpa.properties.hibernate.format_sql=true