質問編集履歴

3

解決

2018/10/19 00:58

投稿

mk222222
mk222222

スコア59

test CHANGED
File without changes
test CHANGED
@@ -5,31 +5,3 @@
5
5
  ちなみにサーバ側では以下で取得できました!
6
6
 
7
7
  SecurityContextHolder.getContext().getAuthentication().getPrincipal().getEntity();
8
-
9
- //情報
10
-
11
-
12
-
13
- 補足
14
-
15
- うまるちゃんのURLの中にある
16
-
17
- <body th:with="httpStatus=${T(org.springframework.http.HttpStatus).valueOf(#response.status)}">
18
-
19
- <h1 th:text="|${httpStatus} - ${httpStatus.reasonPhrase}|">404</h1>
20
-
21
- ってやつ書いても何も表示されませんでした。
22
-
23
-
24
-
25
- <div sec:authorize="hasRole('ROLE_USER')">
26
-
27
- これはjspでの書き方ですね・・・
28
-
29
-
30
-
31
- 追記
32
-
33
- これをhtmlタグに追記してあげればjspの書き方使えるっぽいです!
34
-
35
- xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">

2

追記

2018/10/19 00:58

投稿

mk222222
mk222222

スコア59

test CHANGED
File without changes
test CHANGED
@@ -28,4 +28,8 @@
28
28
 
29
29
 
30
30
 
31
+ 追記
32
+
31
- ひぃ検索力ほ
33
+ これをhtmlタグに追記してあげればjspの書き方使えるっぽいで
34
+
35
+ xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">

1

追記

2018/10/19 00:16

投稿

mk222222
mk222222

スコア59

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,25 @@
7
7
  SecurityContextHolder.getContext().getAuthentication().getPrincipal().getEntity();
8
8
 
9
9
  //情報
10
+
11
+
12
+
13
+ 補足
14
+
15
+ うまるちゃんのURLの中にある
16
+
17
+ <body th:with="httpStatus=${T(org.springframework.http.HttpStatus).valueOf(#response.status)}">
18
+
19
+ <h1 th:text="|${httpStatus} - ${httpStatus.reasonPhrase}|">404</h1>
20
+
21
+ ってやつ書いても何も表示されませんでした。
22
+
23
+
24
+
25
+ <div sec:authorize="hasRole('ROLE_USER')">
26
+
27
+ これはjspでの書き方ですね・・・
28
+
29
+
30
+
31
+ ひぃ検索力ほすぃ