質問編集履歴
3
解決
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,18 +1,4 @@
|
|
1
1
|
ggっても出てこなかったので質問させていただきました
|
2
2
|
|
3
3
|
ちなみにサーバ側では以下で取得できました!
|
4
|
-
SecurityContextHolder.getContext().getAuthentication().getPrincipal().getEntity();
|
4
|
+
SecurityContextHolder.getContext().getAuthentication().getPrincipal().getEntity();
|
5
|
-
//情報
|
6
|
-
|
7
|
-
補足
|
8
|
-
うまるちゃんのURLの中にある
|
9
|
-
<body th:with="httpStatus=${T(org.springframework.http.HttpStatus).valueOf(#response.status)}">
|
10
|
-
<h1 th:text="|${httpStatus} - ${httpStatus.reasonPhrase}|">404</h1>
|
11
|
-
ってやつ書いても何も表示されませんでした。
|
12
|
-
|
13
|
-
<div sec:authorize="hasRole('ROLE_USER')">
|
14
|
-
これはjspでの書き方ですね・・・
|
15
|
-
|
16
|
-
追記
|
17
|
-
これをhtmlタグに追記してあげればjspの書き方使えるっぽいです!
|
18
|
-
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
|
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,4 +13,6 @@
|
|
13
13
|
<div sec:authorize="hasRole('ROLE_USER')">
|
14
14
|
これはjspでの書き方ですね・・・
|
15
15
|
|
16
|
+
追記
|
16
|
-
|
17
|
+
これをhtmlタグに追記してあげればjspの書き方使えるっぽいです!
|
18
|
+
xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,4 +2,15 @@
|
|
2
2
|
|
3
3
|
ちなみにサーバ側では以下で取得できました!
|
4
4
|
SecurityContextHolder.getContext().getAuthentication().getPrincipal().getEntity();
|
5
|
-
//情報
|
5
|
+
//情報
|
6
|
+
|
7
|
+
補足
|
8
|
+
うまるちゃんのURLの中にある
|
9
|
+
<body th:with="httpStatus=${T(org.springframework.http.HttpStatus).valueOf(#response.status)}">
|
10
|
+
<h1 th:text="|${httpStatus} - ${httpStatus.reasonPhrase}|">404</h1>
|
11
|
+
ってやつ書いても何も表示されませんでした。
|
12
|
+
|
13
|
+
<div sec:authorize="hasRole('ROLE_USER')">
|
14
|
+
これはjspでの書き方ですね・・・
|
15
|
+
|
16
|
+
ひぃ検索力ほすぃ
|