标签:
返回一个指定的http response状态码。
@ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "IOException occured") @ExceptionHandler(IOException.class) @ResponseBody public void handleIOException() { // returning 404 error code }
标签:
原文地址:http://www.cnblogs.com/ClassNotFoundException/p/5852308.html