Created
November 7, 2019 03:30
-
-
Save mihkels/9cf9e08aac6f57b97d24476948496080 to your computer and use it in GitHub Desktop.
RSocket Spring Boot RSocketRequester configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@RequiredArgsConstructor | |
@FieldDefaults(level = AccessLevel.PRIVATE, makeFinal = true) | |
public class RSocketConfiguration { | |
RSocketProperties properties; | |
@Bean | |
Mono<RSocketRequester> rSocketRequester(RSocketRequester.Builder builder) { | |
return builder.connectTcp("127.0.0.1", properties.getServer().getPort()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment