Welkin1027 commented on issue #4268:
URL:
https://github.com/apache/servicecomb-java-chassis/issues/4268#issuecomment-2011429985
> > 参考 #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无法匹配
也没有改过什么,就突然可以用了
--
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]