2017年3月23日

spring异常处理三

摘要: 通过定义一个ExceptionHandler注解,其他controller继承他可以根据不同的异常进行处理。 阅读全文

posted @ 2017-03-23 17:55 老邱2 阅读(75) 评论(0) 推荐(0) 编辑

spring异常处理二

摘要: 阅读全文

posted @ 2017-03-23 17:44 老邱2 阅读(64) 评论(0) 推荐(0) 编辑

spring异常

摘要: @RequestMapping("/test") public String view() throws ExceptionTest{ if(true){ throw new ExceptionTest(); } return "index"; } 阅读全文

posted @ 2017-03-23 17:29 老邱2 阅读(79) 评论(0) 推荐(0) 编辑

导航