BAEL-2304 Improve functional webflux article
- Updated tests and minor spell fix
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user