@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));
}
}