liubao68 commented on issue #4268:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/4268#issuecomment-2011544106

   > > > > 参考 #2329
   > > > 
   > > > 
   > > > ```
   > > >     @RequestMapping(path = {"/{path:.+}"}, produces = 
MediaType.APPLICATION_JSON_VALUE)
   > > >     public ResponseEntity<byte[]> catchAll(@PathVariable String path, 
HttpServletRequest request)
   > > >         throws IOException {
   > > >         System.out.println(path);
   > > >      }
   > > > ```
   > > > 
   > > > 
   > > >     
   > > >       
   > > >     
   > > > 
   > > >       
   > > >     
   > > > 
   > > >     
   > > >   
   > > > 这种修改方式已经尝试过,我在这里用过 .+ 和 .* ,问题在于没法匹配多级路径,只可以匹配一级路径,如 /hello可以匹配, 
/hello/test无法匹配
   > > 
   > > 
   > > 也没有改过什么,就突然可以用了
   > 
   > 
在配置文件里,servicecomb.rest.address的端口号与spring设置的端口号不同时,可以匹配/hello,无法匹配/hello/test,而端口号一致时可以匹配两者。不知道是什么原因
   
   
https://servicecomb.apache.org/references/java-chassis/zh_CN/spring-boot/introduction.html
 两个的差异可以参考这个说明。 
   估计vert.x容器还没支持到你说的场景,不过得验证下。 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to