我的配置如下
apiEndpoints:
api:
host: '*'
paths: '/ip'
approval-engine:
host: '*'
paths: '/app/*'
serviceEndpoints:
httpbin:
url: 'https://httpbin.org'
approval-engine:
url: 'http://localhost:8001/'
以代理为
- proxy:
- action:
serviceEndpoint: approval-engine
ignorePath: false
prependPath: false
autoRewrite : true
changeOrigin: true
当我向http://localhost:8080/app/category发出请求时,请求被路由到 localhost:8001/app/category
我的问题是我们可以将请求路由到http://localhost:8001/category。我想忽略代理中的路径:/app/ 部分。