Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
gateway-server-dev.yml 411 Bytes
Copy Edit Web IDE Raw Blame History
server:
port: 6002
spring:
application:
name: gateway
cloud:
gateway:
routes:
#路由的ID,没有固定规则但要求唯一,建议配合服务名
- id: payment_routh
#匹配后提供服务的路由地址
uri: http://news.baidu.com
predicates:
#断言,路径相匹配的进行路由
- Path= /guonei/**

Comment ( 0 )

Sign in for post a comment