You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the springmvc project, after adding the configuration of spring.mvc.servlet.path or server.servlet.context-path, the API path registered to the gateway is incorrect
Expected Behavior
Expect to register the correct API path to the gateway
<!doctype html><htmllang="en"><head><title>HTTP Status 404 – Not Found</title><styletype="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – Not Found</h1></body></html>
Environment
ShenYu version(s): master
Debug logs
[shenyu-netty-nio-3] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - contextPath selector match success from default strategy
[shenyu-netty-nio-3] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - contextPath selector success match , selector name :/mvc
[shenyu-netty-nio-3] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - contextPath rule success match , rule name :/mvc
[shenyu-netty-nio-3] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - divide selector match success from default strategy
[shenyu-netty-nio-3] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - divide selector success match , selector name :/mvc
[shenyu-netty-nio-3] INFO org.apache.shenyu.plugin.base.AbstractShenyuPlugin - divide rule success match , rule name :/mvc/order/findById
[shenyu-netty-nio-3] DEBUG org.apache.shenyu.plugin.httpclient.AbstractHttpClientPlugin - The request urlPath is: http://192.168.56.1:8289/order/findById, retryTimes is : 3, retryStrategy is : current
Is there an existing issue for this?
Current Behavior
In the
springmvc
project, after adding the configuration ofspring.mvc.servlet.path
orserver.servlet.context-path
, the API path registered to the gateway is incorrectExpected Behavior
Expect to register the correct API path to the gateway
Steps To Reproduce
shenyu-examples/shenyu-examples-springmvc/src/main/resources/application.yml
diff
shenyu-examples/shenyu-examples-springmvc/src/main/resources/application.yml
The curl of the debugging API is as follows:
response error:
Environment
Debug logs
Anything else?
Spring Web MVC - Path Matching
Context Path vs. Servlet Path in Spring
The text was updated successfully, but these errors were encountered: