File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
docs/modules/ROOT/pages/migration-7 Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments