Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mohitsinha/spring-boot-webflux-reactive-mongo
A sample project created using Spring Boot 2, Spring Data Mongo-Db Reactive, Spring Boot Webflux, Spring Security Webflux, Functional Routes
https://github.com/mohitsinha/spring-boot-webflux-reactive-mongo
spring-boot spring-data-mongodb-reactive spring-reactive spring-webflux springsecurity
Last synced: about 2 months ago
JSON representation
A sample project created using Spring Boot 2, Spring Data Mongo-Db Reactive, Spring Boot Webflux, Spring Security Webflux, Functional Routes
- Host: GitHub
- URL: https://github.com/mohitsinha/spring-boot-webflux-reactive-mongo
- Owner: mohitsinha
- Created: 2017-08-15T12:31:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-07T16:39:26.000Z (over 7 years ago)
- Last Synced: 2024-11-01T03:42:07.568Z (about 2 months ago)
- Topics: spring-boot, spring-data-mongodb-reactive, spring-reactive, spring-webflux, springsecurity
- Language: Java
- Homepage:
- Size: 59.6 KB
- Stars: 49
- Watchers: 5
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot Webflux Reactive Mongo
This is a sample application that shows how to build a web application using
- Spring Boot 2
- Spring Webflux
- Spring Reactive Data MongoDb
- Spring Security Reactive Webflux
Please see the following pages for more details
- Spring Web Reactive
http://docs.spring.io/spring-framework/docs/5.0.0.M1/spring-framework-reference/html/web-reactive.html
- Spring Data Reactive
https://spring.io/blog/2016/11/28/going-reactive-with-spring-data
- Spring Functional Web Framework
https://spring.io/blog/2016/09/22/new-in-spring-5-functional-web-framework## Running
In application.properties, configure appropriate values.
Run this using using the gradle wrapper included```
./gradlew bootRun
```And then go to http://localhost:8080 to test the API's.
## cURL Commands
You can try the following API's once the server is running.
GET __/person__
``` curl http://localhost:8080/person -v -u tom:password```
GET __/person/{id}__
``` curl http://localhost:8080/person/{id} -v -u tom:password```
POST __/person__
``` curl -X POST -d '{"name":"John Doe","age":20}' -H "Content-Type: application/json" http://localhost:8080/person -v -u tom:password```