chore: 忽略静态资源的异常处理
This commit is contained in:
parent
5034363060
commit
5843d13f6f
|
@ -123,7 +123,10 @@ public class RestControllerExceptionHandler {
|
||||||
@ExceptionHandler({EofException.class})
|
@ExceptionHandler({EofException.class})
|
||||||
public ResponseEntity<Object> handleEofException(HttpServletRequest request, Exception e) {
|
public ResponseEntity<Object> handleEofException(HttpServletRequest request, Exception e) {
|
||||||
String requestURI = request.getRequestURI();
|
String requestURI = request.getRequestURI();
|
||||||
if (StringUtils.startsWith(requestURI, "/assets") || StringUtils.startsWith(requestURI, "/fonts")) {
|
if (StringUtils.startsWith(requestURI, "/assets")
|
||||||
|
|| StringUtils.startsWith(requestURI, "/fonts")
|
||||||
|
|| StringUtils.startsWith(requestURI, "/images")
|
||||||
|
|| StringUtils.startsWith(requestURI, "/templates")) {
|
||||||
return ResponseEntity.internalServerError().body(null);
|
return ResponseEntity.internalServerError().body(null);
|
||||||
}
|
}
|
||||||
return ResponseEntity.internalServerError()
|
return ResponseEntity.internalServerError()
|
||||||
|
|
Loading…
Reference in New Issue