Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The purpose of this project is to demonstrate how we can use Spring WebFlux to create a simple reactive web application.

License

NotificationsYou must be signed in to change notification settings

coderbunty/spring-webflux-reactive-rest-api-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The purpose of this project is to demonstrate how we canuseSpring WebFlux to createa simple reactive web application.

This project usesPostgreSQL implementation of the R2DBC SPI.

How to build and run

project can be compiled with JDK 8 and abovejavac.

To compile just domvn clean package.

Prerequisites

  • JAVA 8 should be installed
  • Postgres should be up and running at : localhost:5432

To run the application execute the following:

java -jar target/reactive-examples*.jar

You can also use the Swagger-UI to test the application.alt text

for more detailed technical information please check mypost :https://dassum.medium.com/building-a-reactive-restful-web-service-using-spring-boot-and-postgres-c8e157dbc81d

The server will start athttp://localhost:8080.

Exploring the Rest APIs

The Swagger UI will open at :http://localhost:8080/swagger-ui/index.html

The application contains the following REST APIs

1. GET /users - Get All Users2. POST /users - To create a User3. GET /users/{userId} - Retrieve an User by Id3. PUT /users/{userId} - Update an User4. DELETE /users/{userId} - Delete an User4. GET /users/events - Stream users to a browser as Server-Sent Events

It contain a sample WebClient to retrieve data from our User Management application.

About

The purpose of this project is to demonstrate how we can use Spring WebFlux to create a simple reactive web application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java100.0%

[8]ページ先頭

©2009-2025 Movatter.jp