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
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/servlet/integrations/mvc.adoc
+27-14Lines changed: 27 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -199,7 +199,9 @@ We could add additional rules for all the permutations of Spring MVC, but this w
199
199
Fortunately, when using the `requestMatchers` DSL method, Spring Security automatically creates a `PathPatternRequestMatcher` if it detects that Spring MVC is available in the classpath.
200
200
Therefore, it will protect the same URLs that Spring MVC will match on by using Spring MVC to match on the URL.
201
201
202
-
One common requirement when using Spring MVC is to specify the servlet path property, for that you can use the `PathPatternRequestMatcher.Builder` to create multiple `PathPatternRequestMatcher` instances that share the same servlet path:
202
+
One common requirement when using Spring MVC is to specify the servlet path property.
203
+
204
+
For Java-based Configuration, you can use the `PathPatternRequestMatcher.Builder` to create multiple `PathPatternRequestMatcher` instances that share the same servlet path:
0 commit comments