配置Gateway(Gateway不报错,但找不到服务)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
server:
|
||||
port: 80
|
||||
|
||||
# Spring 配置
|
||||
spring:
|
||||
application:
|
||||
name: microservice-gateway
|
||||
cloud:
|
||||
gateway:
|
||||
discovery:
|
||||
locator:
|
||||
enabled: true
|
||||
lower-case-service-id: true
|
||||
routes:
|
||||
- id: test
|
||||
uri: lb://microservice-provider-test-8011
|
||||
predicates:
|
||||
- Path=/test/**
|
Reference in New Issue
Block a user