Spring cloud 路由到URL在配置中的行为不同
我试图熟悉SpringCloudGateway,但在YAML中配置路由时遇到问题。我正在尝试根据httpbin.org的路径进行简单的重定向。当我在代码中执行此操作时,这很好,但当我在YAML配置中尝试此操作时,我得到了一个404。 亚马尔: 当我尝试这条路线时,看起来路线正在匹配-我没有看到路线本身有404。我在回答中得到的是Spring cloud 路由到URL在配置中的行为不同,spring-cloud,spring-cloud-gateway,Spring Cloud,Spring Cloud Gateway,我试图熟悉SpringCloudGateway,但在YAML中配置路由时遇到问题。我正在尝试根据httpbin.org的路径进行简单的重定向。当我在代码中执行此操作时,这很好,但当我在YAML配置中尝试此操作时,我得到了一个404。 亚马尔: 当我尝试这条路线时,看起来路线正在匹配-我没有看到路线本身有404。我在回答中得到的是 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>404 Not F
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try
again.</p>
404找不到
找不到
在服务器上找不到请求的URL。如果您手动输入URL,请检查拼写并重试
再说一遍
我做错了什么?httpbinough上没有路径/演示!对不起,我很确定这是我的yaml中的某个东西,但我没有意识到我没有改变我的路径谓词。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try
again.</p>