service-task-dev.properties 3.1 KB

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