application-dev.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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: 8007
  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: report-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. activiti:
  47. database-schema-update: false
  48. # false:false为默认值,设置为该值后,Activiti在启动时,会对比数据库表中保存的版本,如果版本不匹配时,将在启动时抛出异常。
  49. # true:设置为该值后,Activiti会对数据库中所有的表进行更新,如果表不存在,则Activiti会自动创建。
  50. # create-drop:Activiti启动时,会执行数据库表的创建操作,在Activiti关闭时,执行数据库表的删除操作。
  51. # drop-create:Activiti启动时,执行数据库表的删除操作在Activiti关闭时,会执行数据库表的创建操作。
  52. # datasource:
  53. # connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
  54. # minIdle: 5
  55. # validationQuery: SELECT 1 FROM DUAL
  56. # initialSize: 5
  57. # maxWait: 60000
  58. # filters: stat,wall,log4j
  59. # poolPreparedStatements: true
  60. # type: com.alibaba.druid.pool.DruidDataSource
  61. # url: jdbc:mysql://dev.db.java110.com:3306/TT?useUnicode=true&characterEncoding=utf-8
  62. # maxPoolPreparedStatementPerConnectionSize: 20
  63. # password: TT@12345678
  64. # testOnBorrow: false
  65. # testWhileIdle: true
  66. # minEvictableIdleTimeMillis: 300000
  67. # timeBetweenEvictionRunsMillis: 60000
  68. # testOnReturn: false
  69. # driverClassName: com.mysql.jdbc.Driver
  70. # maxActive: 20
  71. # username: TT
  72. #============== kafka ===================
  73. kafka:
  74. consumer:
  75. zookeeper:
  76. connect: dev.zk.java110.com:2181
  77. servers: dev.kafka.java110.com:9092
  78. enable:
  79. auto:
  80. commit: true
  81. session:
  82. timeout: 6000
  83. auto:
  84. commit:
  85. interval: 100
  86. offset:
  87. reset: latest
  88. topic: test
  89. group:
  90. id: reportBusinessStatus
  91. concurrency: 10
  92. producer:
  93. zookeeper:
  94. connect: dev.zk.java110.com:2181
  95. servers: dev.kafka.java110.com:9092
  96. retries: 0
  97. batch:
  98. size: 4096
  99. linger: 1
  100. buffer:
  101. memory: 40960