spirngmvc外的Exception或spring mvc没
2017-11-14 本文已影响2人
悦者生存
@ExceptionHandler()
@ResponseBody
public String error(Exception e){
return "Error:"+e.getMessage();
}
@ExceptionHandler()
@ResponseBody
public String error(Exception e){
return "Error:"+e.getMessage();
}