spring-boot-webflux reactive rest demo using spring-boot-starter-data-mongodb-reactive
- JDK 1.8
- Maven 3.5
- Git
git clone https://github.com/origoni/springboot-webflux-demo1.git
cd springboot-webflux-demo1
mvn spring-boot:run
curl -d '{"name":"olivia","age":5}' -H 'Content-Type: application/json' -v 'http://localhost:8089/person'
curl -X PUT -d '{"name":"noah","age":3}' -H 'Content-Type: application/json' -v 'http://localhost:8089/person'
curl -H 'Content-Type: application/json' -v 'http://localhost:8089/person'
curl -H 'Content-Type: application/json' -v 'http://localhost:8089/person/olivia'
curl -d '{"name":"test","age":0}' -H 'Content-Type: application/json' -v 'http://localhost:8089/person'
curl -H 'Content-Type: application/json' -v 'http://localhost:8089/person'
curl -d '{"name":"test","age":10}' -H 'Content-Type: application/json' -v 'http://localhost:8089/person'
curl -H 'Content-Type: application/json' -v 'http://localhost:8089/person'
curl -X DELETE -H 'Content-Type: application/json' -v 'http://localhost:8089/person/test'
curl -H 'Content-Type: application/json' -v 'http://localhost:8089/person'
- spring-boot-starter-webflux
- spring-boot-starter-data-mongodb-reactive
- de.flapdoodle.embed.de.flapdoodle.embed.mongo
- org.projectlombok.lombok