wuxw
2019-07-16 e108ff50d948e7b8f85a07a8ec708699df745c82
CommunityService/src/main/resources/application-dev.yml
@@ -12,7 +12,7 @@
    leaseRenewalIntervalInSeconds: 10
    leaseExpirationDurationInSeconds: 30
    preferIpAddress: true
    instanceId: ${spring.cloud.client.ipAddress}:${server.port}
    instanceId: ${spring.cloud.client.ip-address}:${server.port}
  client:
    serviceUrl:
      defaultZone: http://dev.java110.com:8761/eureka/
@@ -23,6 +23,8 @@
    uri-encoding: UTF-8
spring:
  profiles:
    active: share
  http:
    encoding:
      charset: UTF-8
@@ -40,26 +42,26 @@
      max-idle: 100
      min-idle: 0
      timeout: 0
  datasource:
    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
    minIdle: 5
    validationQuery: SELECT 1 FROM DUAL
    initialSize: 5
    maxWait: 60000
    filters: stat,wall,log4j
    poolPreparedStatements: true
    type: com.alibaba.druid.pool.DruidDataSource
    url: jdbc:mysql://dev.db.java110.com:3306/TT?useUnicode=true&characterEncoding=utf-8
    maxPoolPreparedStatementPerConnectionSize: 20
    password: TT@12345678
    testOnBorrow: false
    testWhileIdle: true
    minEvictableIdleTimeMillis: 300000
    timeBetweenEvictionRunsMillis: 60000
    testOnReturn: false
    driverClassName: com.mysql.jdbc.Driver
    maxActive: 20
    username: TT
#  datasource:
#    connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
#    minIdle: 5
#    validationQuery: SELECT 1 FROM DUAL
#    initialSize: 5
#    maxWait: 60000
#    filters: stat,wall,log4j
#    poolPreparedStatements: true
#    type: com.alibaba.druid.pool.DruidDataSource
#    url: jdbc:mysql://dev.db.java110.com:3306/TT?useUnicode=true&characterEncoding=utf-8
#    maxPoolPreparedStatementPerConnectionSize: 20
#    password: TT@12345678
#    testOnBorrow: false
#    testWhileIdle: true
#    minEvictableIdleTimeMillis: 300000
#    timeBetweenEvictionRunsMillis: 60000
#    testOnReturn: false
#    driverClassName: com.mysql.jdbc.Driver
#    maxActive: 20
#    username: TT
#============== kafka ===================
kafka: