Regexmatcher / Antmatcher for url with request param

Viewed 8

In Spring, you can configure endpoints to be accessible without the need for authentication. You can do this via WebIgnoring method or via the configure method and using permitAll(). The problem is for my registration form I have following request url:

http://localhost:9090/users?username=

the username is limited to the regex "^[^-\\s][\\w]{1,19}$". Does anyone know how to make that url anonymous for Spring using an antMatcher or a regexMatcher?

0 Answers
Related