Spring-MVC异常处理
Spring-MVC异常处理
一般处理发生错误的方法
@RequestMapping(value = "/hello3.action")
protected String handleHello3(Model model,String username,int age) throws Exception {
System.out.println(username+"===="+age);
if ("myerror".equals(username)){
原创
2021-12-10 10:23:31 ·
128 阅读 ·
0 评论