All Life is Problem Solving
2018-02-28 本文已影响0人
渡人即渡己

@Valid AppointmentForm appointment, BindingResult result) {
if (result.hasErrors()) {
return "appointments/new";
}
@GetMapping
@PostMapping
@PutMapping
@DeleteMapping
@PatchMapping
@Valid AppointmentForm appointment, BindingResult result) {
if (result.hasErrors()) {
return "appointments/new";
}
@GetMapping
@PostMapping
@PutMapping
@DeleteMapping
@PatchMapping