Skip to content

Instantly share code, notes, and snippets.

@mihkels
Created November 7, 2019 03:30
Show Gist options
  • Save mihkels/9cf9e08aac6f57b97d24476948496080 to your computer and use it in GitHub Desktop.
Save mihkels/9cf9e08aac6f57b97d24476948496080 to your computer and use it in GitHub Desktop.
RSocket Spring Boot RSocketRequester configuration
@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