diff --git a/src/main/java/com/example/demo/app/presentation/controller/ErrorController.java b/src/main/java/com/example/demo/app/presentation/controller/ErrorController.java new file mode 100644 index 0000000..973d396 --- /dev/null +++ b/src/main/java/com/example/demo/app/presentation/controller/ErrorController.java @@ -0,0 +1,12 @@ +package com.example.demo.app.presentation.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; + +@Controller +public class ErrorController { + @GetMapping("/error") + public String showError() { + return "error"; + } +} diff --git a/src/main/resources/templates/error.html b/src/main/resources/templates/error.html new file mode 100644 index 0000000..2bf0229 --- /dev/null +++ b/src/main/resources/templates/error.html @@ -0,0 +1,32 @@ + + + + +エラー + + + + + + + +
+
+ +
+ +

+ エラーが発生しました +

+ +

+ + + ログイン画面へ + + +
+ + + + \ No newline at end of file