返回
eureka:
client:
register-with-eureka: true
fetchRegistry: true
service-url:
defaultZone: http://diyu-eureka1-service:8080/eureka/,http://diyu-eureka2-service:8080/eureka/,http://diyu-eureka3-service:8080/eureka/
register-with-eureka: true
fetch-registry: true
instance:
instance-id: ''
prefer-ip-address: true
logging:
pattern:
console: '%d{yyyy-MM-dd HH:mm:ss} -%5p %m%n'
server:
port: 80
config:
info: config proc
url: http://192.168.1.60
keycloak-client:
server-url: http://192.168.1.60:31080/
realm: My-Realm
spring:
cloud:
gateway:
discovery:
locator:
enabled: true
routes:
- id: cloud-employee
uri: lb://cloud-employee
predicates:
- Path=/employee/**
filters:
- RewritePath=/employee/(?<path>.*), /$\{path}
- id: cloud-service
uri: lb://cloud-department
predicates:
- Path=/department/**
filters:
- RewritePath=/department/(?<path>.*), /$\{path}
- id: cloud-organization
uri: lb://cloud-organization
predicates:
- Path=/organization/**
filters:
- RewritePath=/organization/(?<path>.*), /$\{path}
- id: openapi
uri: http://localhost:80
predicates:
- Path=/v3/api-docs/**
filters:
- RewritePath=/v3/api-docs/(?<path>.*), /$\{path}/v3/api-docs
- id: micrometer-service
uri: lb://cloud-micrometer
predicates:
- Path=/micrometer/**
filters:
- RewritePath=/micrometer/(?<path>.*), /$\{path}
- id: order-service
uri: lb://cloud-order
predicates:
- Path=/order/**
filters:
- RewritePath=/order/(?<path>.*), /$\{path}
springdoc:
swagger-ui:
use-root-path: true
urls:
- name: employee
url: http://192.168.1.60:32082/v3/api-docs
- name: department
url: http://192.168.1.60:32081/v3/api-docs
- name: organization
url: http://192.168.1.60:32083/v3/api-docs