We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 718c612 commit 01dc673Copy full SHA for 01dc673
src/main/java/ru/mystamps/web/support/spring/boot/ErrorPagesCustomizer.java
@@ -24,6 +24,8 @@
24
import org.springframework.boot.web.servlet.ErrorPageRegistrar;
25
import org.springframework.boot.web.servlet.ErrorPageRegistry;
26
27
+import org.springframework.security.web.firewall.RequestRejectedException;
28
+
29
import ru.mystamps.web.Url;
30
31
@Configuration
@@ -34,6 +36,7 @@ public void registerErrorPages(ErrorPageRegistry registry) {
34
36
registry.addErrorPages(
35
37
new ErrorPage(HttpStatus.FORBIDDEN, Url.FORBIDDEN_PAGE),
38
new ErrorPage(HttpStatus.NOT_FOUND, Url.NOT_FOUND_PAGE),
39
+ new ErrorPage(RequestRejectedException.class, Url.NOT_FOUND_PAGE),
40
new ErrorPage(Exception.class, Url.INTERNAL_ERROR_PAGE)
41
);
42
}
0 commit comments