fallbackGetAll Fixed

circuit-breaker
atancito 2022-10-04 18:36:59 +02:00
parent dfcd62457b
commit 965bfadee8
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ public class UserController {
}
public ResponseEntity<Map<String, Object>> fallbackGetAll(@PathVariable("userId") int userId) {
public ResponseEntity<Map<String, Object>> fallbackGetAll(@PathVariable("userId") int userId, Exception e) {
return new ResponseEntity("El usuairo " + userId + " tiene los vehículos en el taller.", HttpStatus.OK);
}
}