service-rescenter-local.properties 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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://127.0.0.1:8821/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.host=192.168.1.151
  35. spring.redis.port=6379
  36. spring.redis.password=
  37. spring.redis.timeout=3000
  38. spring.redis.pool.max-idle=8
  39. spring.redis.pool.min-idle=0
  40. spring.redis.pool.max-active=8
  41. spring.redis.pool.max-wait=-1
  42. spring.redis.key.prefix=service.resourcecenter
  43. ## 数据源配置
  44. # 默认数据源
  45. afw.datasource.default = master
  46. # 激活数据源列表 起名规则slave_1...
  47. afw.datasource.active = master,slave
  48. # 主数据源
  49. afw.datasource.master.url = jdbc:mysql://localhost:3306/cloud_resource?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
  50. afw.datasource.master.username = root
  51. afw.datasource.master.password = 123456
  52. afw.datasource.master.initial_size = 10
  53. afw.datasource.master.min_idle = 10
  54. afw.datasource.master.max_active = 100
  55. afw.datasource.master.test_while_idle = true
  56. afw.datasource.master.max_wait = 60000
  57. afw.datasource.master.test_on_borrow=true
  58. afw.datasource.master.validation_query=SELECT 1;
  59. # 从数据源
  60. afw.datasource.slave.url = jdbc:mysql://localhost:3306/cloud_resource?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&allowMultiQueries=true
  61. afw.datasource.slave.username = root
  62. afw.datasource.slave.password = 123456
  63. afw.datasource.slave.initial_size = 10
  64. afw.datasource.slave.min_idle = 10
  65. afw.datasource.slave.max_active = 100
  66. afw.datasource.slave.test_while_idle = true
  67. afw.datasource.slave.max_wait = 60000
  68. afw.datasource.slave.test_on_borrow=true
  69. afw.datasource.slave.validation_query=SELECT 1;
  70. # 打印sql
  71. spring.jpa.properties.hibernate.show_sql=true
  72. spring.jpa.properties.hibernate.format_sql=true