service-rescenter-dev.properties 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # ucenter 服务配置文件
  2. server.port = 8804
  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://eureka.efunbox.cn:8761/eureka/
  26. # 当前服务 是否注册到eureka
  27. # eureka.client.register-with-eureka = true
  28. #是否eureka服务器获取注册信息
  29. # eureka.client.fetch-registry: false
  30. ## redis 配置
  31. spring.redis.host=192.168.1.86
  32. spring.redis.port=6379
  33. spring.redis.password=otttest
  34. spring.redis.timeout=3000
  35. spring.redis.pool.max-idle=8
  36. spring.redis.pool.min-idle=0
  37. spring.redis.pool.max-active=8
  38. spring.redis.pool.max-wait=-1
  39. spring.redis.key.prefix=service.resourcecenter
  40. ## 数据源配置
  41. # 默认数据源
  42. afw.datasource.default = master
  43. # 激活数据源列表 起名规则slave_1...
  44. afw.datasource.active = master,slave
  45. # 主数据源
  46. afw.datasource.master.url = jdbc:mysql://192.168.1.96:3306/cloud_resource?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
  47. afw.datasource.master.username = root
  48. afw.datasource.master.password = Efunbox^^2015$
  49. afw.datasource.master.initial_size = 10
  50. afw.datasource.master.min_idle = 10
  51. afw.datasource.master.max_active = 100
  52. afw.datasource.master.test_while_idle = true
  53. afw.datasource.master.max_wait = 60000
  54. afw.datasource.master.test_on_borrow=true
  55. afw.datasource.master.validation_query=SELECT 1;
  56. # 从数据源
  57. afw.datasource.slave.url = jdbc:mysql://192.168.1.96:3306/cloud_resource?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
  58. afw.datasource.slave.username = root
  59. afw.datasource.slave.password = Efunbox^^2015$
  60. afw.datasource.slave.initial_size = 10
  61. afw.datasource.slave.min_idle = 10
  62. afw.datasource.slave.max_active = 100
  63. afw.datasource.slave.test_while_idle = true
  64. afw.datasource.slave.max_wait = 60000
  65. afw.datasource.slave.test_on_borrow=true
  66. afw.datasource.slave.validation_query=SELECT 1;
  67. # 打印sql
  68. spring.jpa.properties.hibernate.show_sql=true
  69. spring.jpa.properties.hibernate.format_sql=true