Skip to content

Commit 67e8416

Browse files
committed
URL PATH of Actions - Controller Methods Refactoring
1 parent 67402a1 commit 67e8416

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/woehlke/simpleworklist/error/MyErrorController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.springframework.boot.web.servlet.error.ErrorController;
66
import org.springframework.http.HttpStatus;
77
import org.springframework.stereotype.Controller;
8+
import org.springframework.web.bind.annotation.ExceptionHandler;
89
import org.springframework.web.bind.annotation.RequestMapping;
910

1011
import javax.servlet.http.HttpServletRequest;
@@ -18,6 +19,7 @@
1819
@RequestMapping(path="/fehler")
1920
public class MyErrorController implements ErrorController {
2021

22+
@ExceptionHandler
2123
@RequestMapping(path="/", method={ GET, POST, PUT, HEAD, PATCH, DELETE, OPTIONS, TRACE })
2224
public String handleError(
2325
HttpServletRequest request

0 commit comments

Comments
 (0)