throw new ResponseStatusException( HttpStatus.NOT_FOUND, "the page is not found" );. The NOT_FOUND enumerator returns a 404 error. From the Spring code: ...
確定! 回上一頁