@PostMapping("/order")
@HystrixCommand(fallbackMethod="fallbackMethods")
public ResponseEntity<Object> placeOrder(@Valid @RequestBody Order order){
order.setOrderDate(new Date());
Optional<Cart> carts=proxy.retrieveCart(order.getCartId());
Order savedOrder= repository.save(order);
URI location=ServletUriComponentsBuilder.fromCurrentRequest()
.path("/id}").buildAndExpand(savedOrder.getId()).toUri();
proxy.deleteCart(order.getCartId());
return ResponseEntity.created(location).build();
}
Помогите, пожалуйста, решить проблему