
# spring-cloud相关配置
eureka:
  client:                                   #客户端注册进eureka服务列表内
    service-url:
      #       defaultZone:                          http://192.168.20.235:8080/cloud-center/eureka
      defaultZone:                          http://127.0.0.1:8761/eureka
  instance:
    # 实例ID
    # instance-id:                            ${spring.application.name}:${server.port}:${project.version}
    # 优先使用IP地址方式进行注册服务
    prefer-ip-address:                      true

#启用监控
management:
  endpoints:
    web:
      exposure:
        include:
          - "*"  # 开放所有端点health，info，metrics，通过actuator/+端点名就可以获取相应的信息。默认打开health和info
  endpoint:
    health:
      #未开启actuator/health时，我们获取到的信息是{"status":"UP"}，status的值还有可能是 DOWN。开启后打印详细信息
      show-details:                       always



server:
  port: 8080

spring:
  datasource:
    name:                               revit-algorithm
    type:                               com.alibaba.druid.pool.DruidDataSource
    driver-class-name:                  org.postgresql.Driver
#    url:                                jdbc:postgresql://60.205.177.43:5432/datacenter
    url:                                jdbc:postgresql://60.205.177.43:5432/datacenterlabsl
    username:                           postgres
    password:                           cGVyc2FneV8yMDIwcXdlIUAj

  activemq:
    broker-url:                         tcp://60.205.177.43:61616

  servlet:
    multipart:
      max-request-size:                500MB        # 限制上传的多个文件的总大小
      max-file-size:                   500MB        # 限制单个文件的最大值

  kafka:
    bootstrap-servers:                      192.168.20.236:9092
#    bootstrap-servers:                      127.0.0.1:9092

#    bootstrap-servers:                      172.16.9.226:9092

    consumer:
      group-id:                             datacenter-consumer-group
