Skip to content

Commit afb0c59

Browse files
committed
Add request-matcher XML Migration Steps
Closes gh-18211
1 parent 310f821 commit afb0c59

File tree

1 file changed

+13
-0
lines changed
  • docs/modules/ROOT/pages/migration-7

1 file changed

+13
-0
lines changed

docs/modules/ROOT/pages/migration-7/web.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,19 @@ Xml::
186186
This will tell the Spring Security DSL to use `PathPatternRequestMatcher` for all request matchers that it constructs.
187187

188188
In the event that you are directly constructing an object (as opposed to having the DSL construct it) that has a `setRequestMatcher` method. you should also proactively specify a `PathPatternRequestMatcher` there as well.
189+
In XML, you do this by using `request-matcher="path"` instead of `request-matcher="ant"` or `request-matcher="mvc"` like so:
190+
191+
[tabs]
192+
======
193+
Xml::
194+
+
195+
[source,xml,role="secondary"]
196+
----
197+
<http auto-config="true">
198+
<intercept-url pattern="/my/login/**" access="authenticated" request-matcher="path"/>
199+
</http>
200+
----
201+
======
189202

190203
=== Migrate `exitUserUrl` and `switchUserUrl` Request Matchers in `SwitchUserFilter`
191204

0 commit comments

Comments
 (0)