Skip to content

Commit 4b15b2b

Browse files
committed
Add Migration Steps for Messaging
Closes gh-17509
1 parent bc0d706 commit 4b15b2b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
== Messaging Migrations
2+
3+
[[use-path-pattern]]
4+
== Use PathPatternMessageMatcher by Default
5+
6+
In Spring Security 7, `SimpDestMessageMatcher` is no longer supported and will use `PathPatternMessageMatcher` by default.
7+
8+
To check how prepared you are for this change, you can publish this bean:
9+
10+
[tabs]
11+
======
12+
Java::
13+
+
14+
[source,java,role="primary"]
15+
----
16+
@Bean
17+
PathPatternMessageMatcherBuilderFactoryBean messageMatcherBuilder() {
18+
return new PathPatternMessageMatcherBuilderFactoryBean();
19+
}
20+
----
21+
22+
Kotlin::
23+
+
24+
[source,kotlin,role="secondary"]
25+
----
26+
@Bean
27+
fun messageMatcherBuilder(): PathPatternMessageMatcherBuilderFactoryBean {
28+
return PathPatternMessageMatcherBuilderFactoryBean()
29+
}
30+
----
31+
32+
Xml::
33+
+
34+
[source,xml,role="secondary"]
35+
----
36+
<b:bean class="org.springframework.security.config.web.messaging.PathPatternMessageMatcherBuilderFactoryBean"/>
37+
----
38+
======
39+
40+
This will tell the Spring Security DSL to use `PathPatternMessageMatcher` for all message matchers that it constructs.

0 commit comments

Comments
 (0)