
# spring-cloud相关配置
eureka:
  client:                                   #客户端注册进eureka服务列表内
    service-url:
      defaultZone:                          http://eureka-service: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:
#    url:                                jdbc:postgresql://192.168.64.14:5432/datacenterlabsl
    url:                                jdbc:postgresql://datacenter:5432/datacenter
    username:                           postgres
    password:                           cGVyc2FneV8yMDIwcXdlIUAj

  rabbitmq:
    host: 192.168.64.15
    port: 9936
    username: admin
    password: brzj123456
    #虚拟host 可以不设置,使用server默认host
    virtual-host: /test

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

logging:
  config: classpath:logback-spring.xml
  level:
    root: INFO
    org.hibernate: INFO
    org.hibernate.type.descriptor.sql.BasicExtractor: INFO
    com.ys.adage.mapper: INFO
    org.springframework: INFO

mqtopid: # 消息
  exchange:                           exchange-dmp
  routingKey:                         routingKey-center-adm
  admQueue:                           queue-center-adm
  synQueue:                           queue-center-syn
  routingKey01:                       routing-dmp-rwd
  routingKey02:                       routing-dmp-org