application-dev.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. jedis:
  2. pool:
  3. config:
  4. maxTotal: 100
  5. maxIdle: 20
  6. maxWaitMillis: 20000
  7. host: dev.redis.java110.com
  8. port: 6379
  9. timeout: 3000
  10. password: hc
  11. eureka:
  12. instance:
  13. leaseRenewalIntervalInSeconds: 10
  14. leaseExpirationDurationInSeconds: 30
  15. preferIpAddress: true
  16. instanceId: ${spring.cloud.client.ip-address}:${server.port}
  17. client:
  18. serviceUrl:
  19. defaultZone: http://dev.java110.com:8761/eureka/
  20. #defaultZone: http://localhost:8761/eureka/
  21. server:
  22. port: 8002
  23. tomcat:
  24. uri-encoding: UTF-8
  25. java110:
  26. community-service: community-service
  27. spring:
  28. http:
  29. encoding:
  30. charset: UTF-8
  31. enabled: true
  32. force: true
  33. application:
  34. name: user-service
  35. redis:
  36. database: 0
  37. host: dev.redis.java110.com
  38. port: 6379
  39. password: hc
  40. pool:
  41. max-active: 300
  42. max-wait: 10000
  43. max-idle: 100
  44. min-idle: 0
  45. timeout: 0
  46. datasource:
  47. connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  48. minIdle: 5
  49. validationQuery: SELECT 1 FROM DUAL
  50. initialSize: 5
  51. maxWait: 60000
  52. filters: stat,wall,log4j
  53. poolPreparedStatements: true
  54. type: com.alibaba.druid.pool.DruidDataSource
  55. url: jdbc:mysql://dev.db.java110.com:3306/TT?useUnicode=true&characterEncoding=utf-8
  56. maxPoolPreparedStatementPerConnectionSize: 20
  57. password: TT@12345678
  58. testOnBorrow: false
  59. testWhileIdle: true
  60. minEvictableIdleTimeMillis: 300000
  61. timeBetweenEvictionRunsMillis: 60000
  62. testOnReturn: false
  63. driverClassName: com.mysql.cj.jdbc.Driver
  64. maxActive: 20
  65. username: TT
  66. #============== kafka ===================
  67. kafka:
  68. consumer:
  69. zookeeper:
  70. connect: dev.zk.java110.com:2181
  71. servers: dev.kafka.java110.com:9092
  72. enable:
  73. auto:
  74. commit: true
  75. session:
  76. timeout: 6000
  77. auto:
  78. commit:
  79. interval: 100
  80. offset:
  81. reset: latest
  82. topic: test
  83. group:
  84. id: notifyBusinessStatus
  85. concurrency: 10
  86. producer:
  87. zookeeper:
  88. connect: dev.zk.java110.com:2181
  89. servers: dev.kafka.java110.com:9092
  90. retries: 0
  91. batch:
  92. size: 4096
  93. linger: 1
  94. buffer:
  95. memory: 40960