1
0
mirror of synced 2026-08-04 09:17:02 +00:00

Favor PathPatternMessageMatcher when activated

Issue gh-16500
This commit is contained in:
Josh Cummings
2025-04-22 14:51:40 -06:00
parent bc9ae1eed6
commit a683a3a730
@@ -31,6 +31,9 @@ final class MessageMatcherAuthorizationManagerConfiguration {
MessageMatcherDelegatingAuthorizationManager.Builder messageAuthorizationManagerBuilder(
ApplicationContext context) {
MessageMatcherFactory.setApplicationContext(context);
if (MessageMatcherFactory.usesPathPatterns()) {
return MessageMatcherDelegatingAuthorizationManager.builder();
}
return MessageMatcherDelegatingAuthorizationManager.builder()
.simpDestPathMatcher(
() -> (context.getBeanNamesForType(SimpAnnotationMethodMessageHandler.class).length > 0)