문제

"/*" 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!

도움이 되었습니까?

해결책

I think you can just do this, assuming you mean that you want to matching anything with a / and 1 or more characters after it (so /foo and /a but not /).

serveRegex("/.+")

다른 팁

in general regex:

/+

dont know if it works here tough ..?

http://code.google.com/p/google-guice/wiki/ServletRegexKeyMapping

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top