class-service.yml 6.9 KB
server:
  port: 16200

spring:
  profiles: development
  cloud:
    config:
      discovery:
        enabled: true

  coreDatasource:
    write:
      name: gxb_core
      url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
      username: test
      password: 123456
      driver-class-name: com.mysql.jdbc.Driver
      max-idle: 10
      max-active: 30
      max-wait: 60000
      min-idle: 10
      initial-size: 10
      validation-query: SELECT 1
      test-on-borrow: true
      test-while-idle: true
    read1:
      name: gxb_core
      url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
      username: test
      password: 123456
      driver-class-name: com.mysql.jdbc.Driver
      max-idle: 10
      max-active: 30
      max-wait: 60000
      min-idle: 10
      initial-size: 10
      validation-query: SELECT 1
      test-on-borrow: true
      test-while-idle: true
      
  secondDatasource:
    name: gxb_core
    url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8
    username: test
    password: 123456
    driver-class-name: com.mysql.jdbc.Driver
    max-idle: 10
    max-active: 30
    max-wait: 60000
    min-idle: 10
    initial-size: 10
    validation-query: SELECT 1
    test-on-borrow: true
    test-while-idle: true
  redis:
    database: 0
    host: redis-server
    port: 6379
    pool:
      max-idle: 100
      min-idle: 10
      max-active: 1000
      max-wait: 100000
    sentinel:
      master: mymaster1
      nodes: redis-server:16379,redis-server:16379

mybatis:
  mapperLocations: classpath:/mybatis/*.xml
  typeAliasesPackage: com.huike.eaas.microservice.classes.domains
  config: classpath:mybatis-config.xml
  

#mybatis:
  #configLocation: classpath:mybatis-config.xml

endpoints:
  restart:
    enabled: true
  shutdown:
    enabled: true
  health:
    sensitive: false

eureka:
  instance:
    hostname: class-service
    perferIpAddress: true
  client:
    leaseRenewalIntervalInSeconds: 5
    leaseExpirationDurationInSeconds: 12
    registerWithEureka: true
    fetchRegistry: false
    serviceUrl:
      defaultZone: http://discovery:15200/eureka/
    healthcheck:
      enabled: true

# 一些公共的常量配置
apiConfig:
  resourceGaoXiaoBangUrl: https://resource.gaoxiaobang.com
  usrLocalTomcatTempLocation: /usr/local/tomcat/temp
---
server:
  port: 16200

spring:
  profiles: test
  cloud:
    config:
      discovery:
        enabled: true

  coreDatasource:
    write:
      name: gxb_core
      url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
      username: test
      password: 123456
      driver-class-name: com.mysql.jdbc.Driver
      max-idle: 10
      max-active: 30
      max-wait: 60000
      min-idle: 10
      initial-size: 10
      validation-query: SELECT 1
      test-on-borrow: true
      test-while-idle: true
    read1:
      name: gxb_core
      url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
      username: test
      password: 123456
      driver-class-name: com.mysql.jdbc.Driver
      max-idle: 10
      max-active: 30
      max-wait: 60000
      min-idle: 10
      initial-size: 10
      validation-query: SELECT 1
      test-on-borrow: true
      test-while-idle: true
      
  secondDatasource:
    name: gxb_core
    url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8
    username: test
    password: 123456
    driver-class-name: com.mysql.jdbc.Driver
    max-idle: 10
    max-active: 30
    max-wait: 60000
    min-idle: 10
    initial-size: 10
    validation-query: SELECT 1
    test-on-borrow: true
    test-while-idle: true
  redis:
    database: 0
    host: redis-server
    port: 6379
    pool:
      max-idle: 100
      min-idle: 10
      max-active: 1000
      max-wait: 100000
    sentinel:
      master: mymaster1
      nodes: redis-server:16379,redis-server:16379

mybatis:
  mapperLocations: classpath:/mybatis/*.xml
  typeAliasesPackage: com.huike.eaas.microservice.classes.domains
  config: classpath:mybatis-config.xml
  

#mybatis:
  #configLocation: classpath:mybatis-config.xml

endpoints:
  restart:
    enabled: true
  shutdown:
    enabled: true
  health:
    sensitive: false

eureka:
  instance:
    hostname: class-service
    perferIpAddress: true
  client:
    registerWithEureka: true
    fetchRegistry: false
    serviceUrl:
      defaultZone: http://discovery:15200/eureka/

# 一些公共的常量配置
apiConfig:
  resourceGaoXiaoBangUrl: https://resource.gaoxiaobang.com
  usrLocalTomcatTempLocation: /usr/local/tomcat/temp
---
server:
  port: 16200

spring:
  profiles: production
  cloud:
    config:
      discovery:
        enabled: true
  coreDatasource:
    write:
      name: gxb_core
      url: jdbc:mysql://emysql3:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
      username: postgres
      password: 5095e001221824498ea622e89bdd3627
      driver-class-name: com.mysql.jdbc.Driver
      max-idle: 10
      max-active: 30
      max-wait: 60000
      min-idle: 10
      initial-size: 10
      validation-query: SELECT 1
      test-on-borrow: true
      test-while-idle: true
    read1:
      name: gxb_core
      url: jdbc:mysql://db3:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
      username: postgres
      password: 5095e001221824498ea622e89bdd3627
      driver-class-name: com.mysql.jdbc.Driver
      max-idle: 10
      max-active: 30
      max-wait: 60000
      min-idle: 10
      initial-size: 10
      validation-query: SELECT 1
      test-on-borrow: true
      test-while-idle: true
      
  secondDatasource:
    name: gxb_core
    url: jdbc:mysql://emysql3:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8
    username: postgres
    password: 5095e001221824498ea622e89bdd3627
    driver-class-name: com.mysql.jdbc.Driver
    max-idle: 10
    max-active: 30
    max-wait: 60000
    min-idle: 10
    initial-size: 10
    validation-query: SELECT 1
    test-on-borrow: true
    test-while-idle: true
  redis:
    database: 0
    host: redis1
    port: 6379
    pool:
      max-idle: 100
      min-idle: 10
      max-active: 1000
      max-wait: 100000
    sentinel:
      master: mymaster1
      nodes: redis1:16379,redis2:16379

mybatis:
  mapperLocations: classpath:/mybatis/*.xml
  typeAliasesPackage: com.huike.eaas.microservice.classes.domains
  config: classpath:mybatis-config.xml

endpoints:
  restart:
    enabled: true
  shutdown:
    enabled: true
  health:
    sensitive: false

eureka:
  instance:
    hostname: class-service
    perferIpAddress: true
  client:
    registerWithEureka: true
    fetchRegistry: false
    serviceUrl:
      defaultZone: http://discovery:15200/eureka/

# 一些公共的常量配置
apiConfig:
  resourceGaoXiaoBangUrl: https://resource.gaoxiaobang.com
  usrLocalTomcatTempLocation: /usr/local/tomcat/temp