(Exception ex, BindingResult result)
| 13 | @Controller |
| 14 | public class YoilTellerMVC6 { |
| 15 | @ExceptionHandler(Exception.class) |
| 16 | public String catcher(Exception ex, BindingResult result) { |
| 17 | System.out.println("result="+result); |
| 18 | System.out.println("error="+result.getFieldError()); |
| 19 | |
| 20 | return "yoilError"; |
| 21 | } |
| 22 | |
| 23 | @RequestMapping("/getYoilMVC6") // http://localhost/ch2/getYoilMVC6 |
| 24 | // public String main(@ModelAttribute("myDate") MyDate date, Model model) { |
nothing calls this directly
no outgoing calls
no test coverage detected