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 5cc3b36 commit c6f47f0Copy full SHA for c6f47f0
custom-error/README.adoc
@@ -77,7 +77,7 @@ Then, you can add a simple `/error` controller, like this one:
77
[source,java]
78
----
79
@GetMapping("/error")
80
-public String error() {
+public String error(HttpServletRequest request) {
81
String message = (String) request.getSession().getAttribute("error.message");
82
request.getSession().removeAttribute("error.message");
83
return message;
0 commit comments