sch39
Articles
About
ID
☾
Articles
All
spring-boot
14
go
9
go-engineering-notes
9
java-reactive-microservices-engineering-notes
7
webflux
5
apache-kafka-engineering-notes
4
grpc
3
java
3
reactive-mongo-repository
1
+62 more
Reactive CRUD with `ReactiveMongoRepository`
Oct 2026
This article builds reactive CRUD for MovieInfo on top of ReactiveMongoRepository and a WebFlux annotated controller, then proves it with WebTestClient against a real MongoDB. The tests show that the id is generated by MongoDB, that PUT replaces fields without upserting, and that a missing id yields 404 via switchIfEmpty. Everything runs on Spring Boot 4.1 with the spring.mongodb.* properties.