application-dev.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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:
  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: 8005
  23. tomcat:
  24. uri-encoding: UTF-8
  25. spring:
  26. profiles:
  27. active: share
  28. http:
  29. encoding:
  30. charset: UTF-8
  31. enabled: true
  32. force: true
  33. application:
  34. name: common-service
  35. redis:
  36. database: 0
  37. host: dev.redis.java110.com
  38. port: 6379
  39. pool:
  40. max-active: 300
  41. max-wait: 10000
  42. max-idle: 100
  43. min-idle: 0
  44. timeout: 0
  45. # datasource:
  46. # connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  47. # minIdle: 5
  48. # validationQuery: SELECT 1 FROM DUAL
  49. # initialSize: 5
  50. # maxWait: 60000
  51. # filters: stat,wall,log4j
  52. # poolPreparedStatements: true
  53. # type: com.alibaba.druid.pool.DruidDataSource
  54. # url: jdbc:mysql://dev.db.java110.com:3306/TT?useUnicode=true&characterEncoding=utf-8
  55. # maxPoolPreparedStatementPerConnectionSize: 20
  56. # password: TT@12345678
  57. # testOnBorrow: false
  58. # testWhileIdle: true
  59. # minEvictableIdleTimeMillis: 300000
  60. # timeBetweenEvictionRunsMillis: 60000
  61. # testOnReturn: false
  62. # driverClassName: com.mysql.jdbc.Driver
  63. # maxActive: 20
  64. # username: TT
  65. #============== kafka ===================
  66. kafka:
  67. consumer:
  68. zookeeper:
  69. connect: dev.zk.java110.com:2181
  70. servers: dev.kafka.java110.com:9092
  71. enable:
  72. auto:
  73. commit: true
  74. session:
  75. timeout: 6000
  76. auto:
  77. commit:
  78. interval: 100
  79. offset:
  80. reset: latest
  81. topic: test
  82. group:
  83. id: commonBusinessStatus
  84. concurrency: 10
  85. producer:
  86. zookeeper:
  87. connect: dev.zk.java110.com:2181
  88. servers: dev.kafka.java110.com:9092
  89. retries: 0
  90. batch:
  91. size: 4096
  92. linger: 1
  93. buffer:
  94. memory: 40960