Hello Trez, I find it difficult to explain that comment further. It is itself an explanation of the value used in the "url-pattern" parameter for the filter. What about it is confusing?
On Friday, October 27, 2017 at 4:45:52 AM UTC-4, Trez Ertzzer wrote: > > Hello. > I did not write this code... > as I said this code is from > https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/appengine-java8/endpoints-v2-guice > > > Can you explain the comment from this code... > > <!-- > URL Pattern /_ah/api/* instead of /* because a legacy v1 servlet uses > the route /_ah/api/ and using /* will erronously use the legacy v1 > servlet instead of routing to your API. > --> > <filter-mapping> > <filter-name>guiceFilter</filter-name> > <url-pattern>/_ah/api/*</url-pattern> > </filter-mapping> > > > (I used the legacy endpoint, I moved to endpoint framework, now I am > trying to use GUICE) > > > > > > > > > Le vendredi 20 octobre 2017 21:38:32 UTC+2, Jordan (Cloud Platform > Support) a écrit : >> >> You seem to be missing a '.' char in your '/*' regular expression. The >> correct '/.*' matches any characters, zero or more times. Concerning your >> injection issue, you may want to check out past questions >> <https://stackoverflow.com/questions/13298128/guice-injection-null-pointer> >> on Stack Overflow that cover this topic. >> >> - Note that Google Groups is meant for general product discussions and >> not for technical support. If you require further technical support it is >> recommended to post your full question >> <https://stackoverflow.com/help/how-to-ask> to Stack Overflow >> <https://cloud.google.com/support/docs/stackexchange> using the >> supported Cloud tags. >> > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/a4c54e77-0b4e-4f3a-867b-f4b3e9f9f8a2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
