java - Spring Cloud Gateway 和 Oauth2 Server 响应异常 url
问题描述
网关配置:bootstrap.yml
spring:
application:
name: tools-gateway
cloud:
nacos:
config:
server-addr: tools-nacos:9999
group: DEFAULT_GROUP
prefix: tools-gateway
file-extension: yaml
discovery:
server-addr: tools-nacos:9999
gateway:
routes:
- id: tools-uaa
# uri: lb://tools-uaa
uri: http://tools-nacos:8001
predicates:
- Path=/auth/**
filters:
- StripPrefix=1
profiles:
active: dev
端口 8443
访问网址:http://localhost:8443/auth/username 响应网址:
访问网址:http://localhost:8001/auth/username
是成功
解决方案
推荐阅读
- jquery - 用于格式号的 Mustache.js 函数
- predicate - Commercetools - 使用查询谓词过滤集合属性
- php - 连接到 localhost 有效,但不能连接 ip
- alpha-vantage - Alphavantage 和纳斯达克指数停止工作
- mongodb - 如何在 Mac OS Mojave (10.14.2) 上安装 MongoDB?
- javascript - 在对象方法中设置超时后访问“this”属性时出错
- c++ - 传递一个数组
- hugo - 如何显示用于创建列表的 Hugo 类别
- java - ListView OnClicklistener 仅返回单个 json 项值
- google-apps-script - AuthMode 与多个登录用户混淆