1 Commits

Author SHA1 Message Date
s-choi
6ee8a3aa59 [EDIT] エラー処理にセッション破棄を改めて追加しました。 2026-09-29 10:57:28 +09:00
5 changed files with 35 additions and 57 deletions

View File

@@ -58,9 +58,8 @@ public class GlobalExceptionHandler {
e.printStackTrace(); e.printStackTrace();
System.out.println("session invalidated exception");
System.out.println(" .well-known/appspecific/com.chrome.devtools.json for request error"); session.invalidate();
return "error"; return "error";
} }
} }

View File

@@ -9,13 +9,13 @@
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
</head> </head>
<body style="padding-top:80px; padding-bottom:80px;"> <body class="pb-5 pt-5">
<div th:replace="~{header :: header}"></div> <div th:replace="~{header :: header}"></div>
<div class="main-container"> <div class="main-container">
<div> <div>
<ul class="list-unstyled p-0 m-0"> <ul>
<li class="card shadow-sm mb-3" th:each="categoryForm : ${categoryFormList}"> <li class="card shadow-sm mb-3" th:each="categoryForm : ${categoryFormList}">
<div class="card-body"> <div class="card-body">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
@@ -49,29 +49,19 @@
</div> </div>
<hr>
<hr>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
<div class="d-grid mt-4">
<form th:action="@{/category/create}" method="get">
<input type="hidden" <form th:action="@{/category/create}" method="get">
name="today" <input type="hidden" name="today" id="today" th:value="${today}">
id="today" <button type="submit">新規登録</button>
th:value="${today}"> </form>
<button class="btn btn-success w-100" type="submit">
新規登録
</button>
</form>
</div>
</div>
<div th:replace="~{footer :: footer}"></div> <div th:replace="~{footer :: footer}"></div>
</body> </body>

View File

@@ -10,7 +10,7 @@
<link rel="stylesheet" th:href="@{/css/style.css}"> <link rel="stylesheet" th:href="@{/css/style.css}">
</head> </head>
<body style="padding-top:80px; padding-bottom:80px;"> <body class="pb-5 pt-5">
<div th:replace="~{header :: header}"></div> <div th:replace="~{header :: header}"></div>
<div class="main-container"> <div class="main-container">
@@ -19,7 +19,7 @@
<h2 class="page-title" th:text="${today}"></h2> <h2 class="page-title" th:text="${today}"></h2>
<div> <div>
<ul class="list-unstyled p-0 m-0"> <ul>
<li th:each="fixedCostForm : ${fixedCostFormList}" class="card shadow-sm mb-3"> <li th:each="fixedCostForm : ${fixedCostFormList}" class="card shadow-sm mb-3">
<div class="card-body"> <div class="card-body">
@@ -52,29 +52,21 @@
</div> </div>
<hr>
<hr>
</div> </div>
</li> </li>
</ul>
</div> </div>
<div class="d-grid mt-4"> </ul>
<form th:action="@{/category/create}" method="get">
<input type="hidden"
name="today"
id="today"
th:value="${today}">
<button class="btn btn-success w-100" type="submit">
新規登録
</button>
</form>
</div>
</div> </div>
<form th:action="@{/fixed-cost/create}" method="get">
<input type="hidden" name="today" id="today" th:value="${today}">
<button type="submit">新規登録</button>
</form>
<div th:replace="~{footer :: footer}"></div> <div th:replace="~{footer :: footer}"></div>
</body> </body>

View File

@@ -52,11 +52,8 @@
</form> </form>
</div> <div th:replace="~{footer :: footer}"></div>
</div>
</div>
<div th:replace="~{footer :: footer}"></div>
</body> </body>

View File

@@ -8,7 +8,7 @@
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
</head> </head>
<body style="padding-top:80px; padding-bottom:80px;"> <body class="pb-5 pt-5">
<div th:replace="~{header :: header}"></div> <div th:replace="~{header :: header}"></div>
@@ -74,16 +74,16 @@
</ul> </ul>
</div> </div>
</div> <div class="d-grid mt-4">
<form th:action="@{/goal}" method="get">
<div class="d-grid mt-4"> <button class="btn btn-success w-100" type="submit">
<form th:action="@{/goal}" method="get"> 戻る
<button class="btn btn-success w-100" type="submit"> </button>
戻る
</button>
</form>
</div>
</form>
</div>
</div>
</div> </div>
<div th:replace="~{footer :: footer}"></div> <div th:replace="~{footer :: footer}"></div>