Skip to content

Commit 53afbbe

Browse files
committed
Update RouteMatcher configuration for RSocket
This commit updates the `RouteMatcher` configuration after the latest Spring Framework changes. The default route matcher implementation based on the `PathPattern` infrastructure is now tailored for the messaging use case (path separator, path encoding options and trailing separator). See spring-projects/spring-framework#23310
1 parent a1f32bb commit 53afbbe

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/rsocket/RSocketMessagingAutoConfiguration.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import org.springframework.messaging.rsocket.RSocketStrategies;
3030
import org.springframework.messaging.rsocket.annotation.support.RSocketMessageHandler;
3131
import org.springframework.util.ClassUtils;
32-
import org.springframework.web.util.pattern.PathPatternParser;
3332
import org.springframework.web.util.pattern.PathPatternRouteMatcher;
3433

3534
/**
@@ -52,9 +51,7 @@ public RSocketMessageHandler messageHandler(RSocketStrategies rSocketStrategies)
5251
RSocketMessageHandler messageHandler = new RSocketMessageHandler();
5352
messageHandler.setRSocketStrategies(rSocketStrategies);
5453
if (ClassUtils.isPresent(PATHPATTERN_ROUTEMATCHER_CLASS, null)) {
55-
PathPatternParser parser = new PathPatternParser();
56-
parser.setSeparator('.');
57-
messageHandler.setRouteMatcher(new PathPatternRouteMatcher(parser));
54+
messageHandler.setRouteMatcher(new PathPatternRouteMatcher());
5855
}
5956
return messageHandler;
6057
}

0 commit comments

Comments
 (0)