RSocket Server Project Instructions

Learn how to create a server-side for RScoket using Spring Initializr.

To have both a RSocket server and a RSocket client, we must create two different applications. That may sound a bit heavy-handed, but it’s not too difficult, as long as we visit https://start.spring.io and select:

  • Project: Maven
  • Language: Java
  • Spring Boot: Latest version
  • Project Metadata
    • Group: com.greglturnquist
    • Artifact: hackingspringboot
    • Package name: com.greglturnquist.hackingspringboot.reactive.server
  • Dependencies
    • RSocket
    • Spring Data Reactive MongoDB
    • Spring Reactive Web

Generate this project and we’re ready to go!

The code that’s been generated using the above specifications has been provided below:

Get hands-on with 1200+ tech skills courses.