BAEL-2304 Improve functional webflux article

- Updated tests and minor spell fix
This commit is contained in:
Dhawal Kapil
2018-09-17 11:07:02 +05:30
parent 41b2495dcc
commit 9a09cc3ce3
2 changed files with 74 additions and 4 deletions
@@ -39,7 +39,7 @@ public class EmployeeFunctionalConfig {
}
@Bean
RouterFunction<ServerResponse> updateEmployee() {
RouterFunction<ServerResponse> updateEmployeeRoute() {
return route(POST("/employees/update"),
req -> req.body(toMono(Employee.class))
.doOnNext(employeeRepository()::updateEmployee)