Fix example in RSocket docs

Closes gh-24245
This commit is contained in:
Ferdinand Jacobs 2019-12-22 16:48:58 +01:00 committed by Sam Brannen
parent 1b4fd1cba1
commit 0b5ad09394
1 changed files with 2 additions and 2 deletions

View File

@ -690,8 +690,8 @@ you need to share configuration between a client and a server in the same proces
@Bean
public RSocketStrategies rsocketStrategies() {
return RSocketStrategies.builder()
.encoders(encoders -> encoders.add(new Jackson2CborEncoder))
.decoders(decoders -> decoders.add(new Jackson2CborDecoder))
.encoders(encoders -> encoders.add(new Jackson2CborEncoder()))
.decoders(decoders -> decoders.add(new Jackson2CborDecoder()))
.routeMatcher(new PathPatternRouteMatcher())
.build();
}