You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However http.securityMatcher(antMatcher("/api/**"), antMatcher("/app/**")) is not possible at the moment. There is no public HttpSecurity securityMatcher(RequestMatcher... requestMatcher) method only a public HttpSecurity securityMatcher(RequestMatcher requestMatcher) method (no varargs) is available.
Can you please clarify in the docs how such a use case should be migrated? Thanks!
I now opted for the following variant, as I wanted to use the antMatcher explicitly: http.securityMatchers().requestMatchers(antMatcher("/api/**"), antMatcher("/app/**"))
The text was updated successfully, but these errors were encountered:
While updating our security configurations as part of the Spring Boot 3.0.0 upgrade, I noticed a mismatch between the upgrade documentation on the new
securityMatcher
methods. The last code sample in https://docs.spring.io/spring-security/reference/5.8/migration/servlet/config.html#use-new-security-matchers shows the following snippet:However
http.securityMatcher(antMatcher("/api/**"), antMatcher("/app/**"))
is not possible at the moment. There is nopublic HttpSecurity securityMatcher(RequestMatcher... requestMatcher)
method only apublic HttpSecurity securityMatcher(RequestMatcher requestMatcher)
method (no varargs) is available.Can you please clarify in the docs how such a use case should be migrated? Thanks!
I now opted for the following variant, as I wanted to use the antMatcher explicitly:
http.securityMatchers().requestMatchers(antMatcher("/api/**"), antMatcher("/app/**"))
The text was updated successfully, but these errors were encountered: