You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@PostMapping("/flight/book/verify")
public String showVerifyBookingPageResult(@RequestParam("flightId") long flightId,
@RequestParam("passengerId") long passengerId,
Model model)
{
Flight flight = flightService.getFlightById(flightId);
}
Pass data inside Params
Controller
public class TestController
{
private final ServerServiceImpl serverService;
@PostMapping("/save")
public ResponseEntity<Response> saveServer(@RequestBody @Valid Server server)
{
serverService.create(server));
}
}