81,092
社区成员
发帖
与我相关
我的任务
分享
。。。。原来的注解都加上
public ModelAndView mtsave(HttpServletRequest req
,HttpServletResponse res
,ModelMap model){
try{
System.out.println();
System.out.println("start sleep.");
Thread.sleep(1000*60*6); // sleep 6 minutes 或者更大
System.out.println("end sleep.");
}catch(Throwable th){
th.printStackTrace();
}
}
。。。。原来的注解都加上
public ModelAndView mtsave(HttpServletRequest req
,HttpServletResponse res
,ModelMap model){
System.out.println("start testError.");
throw new Error("test error.");
}
。。。。原来的注解都加上
public ModelAndView mtsave(HttpServletRequest req
,HttpServletResponse res
,ModelMap model) throws Throwable {
System.out.println("start testError.");
throw new Throwable("test error.");
}
。。。。原来的注解都加上
public ModelAndView mtsave(HttpServletRequest req
,HttpServletResponse res
,ModelMap model) throws Exception {
System.out.println("start testError.");
throw new Exception("test error.");
}
。。。。原来的注解都加上
public ModelAndView mtsave(HttpServletRequest req
,HttpServletResponse res
,ModelMap model){
System.out.println("start testError.");
throw new RuntimeException("test error.");
}
System.out.println("start testError.");
throw new Error("test error.");