server: port: 8080 spring: datasource: url: jdbc:postgresql://192.168.0.72:5432/datacenter username: postgres password: cGVyc2FneV8yMDIwcXdlIUAj # spring-cloud相关配置 eureka: client: #客户端注册进eureka服务列表内 service-url: defaultZone: http://frame:123456@192.168.100.33:9931/integrated-eureka/eureka/ enable-self-preservation: false # 设为false,关闭自我保护 eviction-interval-timer-in-ms: 5000 # 清理间隔(单位毫秒,默认是60*1000)启用主动失效, instance: #不加的话我看过eureka注册界面,是以docker容器的container id注册过去的,譬如container id为abcde, #那么当访问该微服务时,eureka以http://abcde/xxx,去访问的,当然是访问不到该服务. #配置下面的选项后,就会以内网ip加端口去访问就能访问到了。 prefer-ip-address: true instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port} rabbitmq: host: 192.168.100.32 port: 9936 username: pbsage password: pbsage123 #虚拟host 可以不设置,使用server默认host virtual-host: /test saga: dataPlatform: http://39.102.40.239:9970 data_org: http://172.172.173.22:8080 data_rwd: http://172.172.173.12:9932 data_dic: http://172.172.173.21:8080 mqtopid: exchange: exchange-dmp routingKey: custom: # 自定义类型 #true 代表eureka false 代表 http eurekaorhttp: false # 服务名 servicename: #注册中心使用,服务名 DMPORG: DMP-ORG #物理3世界 DMPRWD: DMP-RWD #中台 DMPDIC: DMP-DIC #字典