iaas-user-dev.properties 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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
  9. eureka.client.register-with-eureka = true
  10. # 是否从eureka服务器获取注册信息
  11. eureka.client.fetch-registry = true
  12. ## redis 配置
  13. spring.redis.host=r-2zee62341d4d38f4.redis.rds.aliyuncs.com
  14. spring.redis.port=6379
  15. spring.redis.password=Efun20170407
  16. spring.redis.timeout=3000
  17. spring.redis.pool.max-idle=8
  18. spring.redis.pool.min-idle=0
  19. spring.redis.pool.max-active=8
  20. spring.redis.pool.max-wait=-1
  21. spring.redis.key.prefix=service.user
  22. ## 数据源配置
  23. # 默认数据源
  24. afw.datasource.default = master
  25. # 激活数据源列表 起名规则slave_1...
  26. afw.datasource.active = master,slave
  27. # 主数据源
  28. afw.datasource.master.url = jdbc:mysql://rm-2ze9d5b4gpb12aty1.mysql.rds.aliyuncs.com:3306/iaas_user?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
  29. afw.datasource.master.username = efundata
  30. afw.datasource.master.password = Efunbox@201704$
  31. afw.datasource.master.initial_size = 10
  32. afw.datasource.master.min_idle = 10
  33. afw.datasource.master.max_active = 100
  34. afw.datasource.master.test_while_idle = true
  35. afw.datasource.master.max_wait = 60000
  36. afw.datasource.master.test_on_borrow=true
  37. afw.datasource.master.validation_query=SELECT 1;
  38. # 从数据源
  39. afw.datasource.slave.url = jdbc:mysql://rm-2ze9d5b4gpb12aty1.mysql.rds.aliyuncs.com:3306/iaas_user?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
  40. afw.datasource.slave.username = efundata
  41. afw.datasource.slave.password = Efunbox@201704$
  42. afw.datasource.slave.initial_size = 10
  43. afw.datasource.slave.min_idle = 10
  44. afw.datasource.slave.max_active = 100
  45. afw.datasource.slave.test_while_idle = true
  46. afw.datasource.slave.max_wait = 60000
  47. afw.datasource.slave.test_on_borrow=true
  48. afw.datasource.slave.validation_query=SELECT 1;
  49. # 打印sql
  50. spring.jpa.properties.hibernate.show_sql=true
  51. spring.jpa.properties.hibernate.format_sql=true