"/*"
will match zero or more characters. I want to serve request if there is a one or more characters proceeding the "/" character.
Note: I am using Guice's Servlet Module to configure the request.
Thanks!
我认为您可以做到这一点,假设您要匹配的任何内容都带有/
以及后跟1个或多个字符(因此/foo
和/a
但不匹配/
)。
serveRegex("/.+")
in general regex:
/+
dont know if it works here tough ..?
http://code.google.com/p/google-guice/wiki/ServletRegexKeyMapping
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.