Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring cloud 路由到URL在配置中的行为不同_Spring Cloud_Spring Cloud Gateway - Fatal编程技术网

Spring cloud 路由到URL在配置中的行为不同

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

我试图熟悉SpringCloudGateway,但在YAML中配置路由时遇到问题。我正在尝试根据httpbin.org的路径进行简单的重定向。当我在代码中执行此操作时,这很好,但当我在YAML配置中尝试此操作时,我得到了一个404。 亚马尔:

当我尝试这条路线时,看起来路线正在匹配-我没有看到路线本身有404。我在回答中得到的是

<!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>