SpringBoot : How to create a Filter in Spring Boot Application | Ekiras
- filterChain.doFilter(resquest,response) to continue the request flow
- Call method sendError to send error,
((HttpServletResponse)response).sendError(HttpServletResponse.SC_BAD_REQUEST);
- Call method sendRedirect to redirect request to error handler
((HttpServletResponse)response).sendRedirect("/errorUrl");
Read full article from SpringBoot : How to create a Filter in Spring Boot Application | Ekiras
No comments:
Post a Comment