回答編集履歴
3
誤字修正
test
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
<td th:if="${#strings.isEmpty(productInfo.productImgOut)}">
|
42
42
|
|
43
|
-
<!-- 例えば、resources/tatic/noimage.jpgを用意します -->
|
43
|
+
<!-- 例えば、resources/static/noimage.jpgを用意します -->
|
44
44
|
|
45
45
|
<img th:src="@{/noimage.jpg}">
|
46
46
|
|
2
追記
test
CHANGED
@@ -38,12 +38,18 @@
|
|
38
38
|
|
39
39
|
```html
|
40
40
|
|
41
|
-
<td>
|
41
|
+
<td th:if="${#strings.isEmpty(productInfo.productImgOut)}">
|
42
42
|
|
43
|
+
<!-- 例えば、resources/tatic/noimage.jpgを用意します -->
|
44
|
+
|
43
|
-
<img th:
|
45
|
+
<img th:src="@{/noimage.jpg}">
|
44
46
|
|
45
47
|
</td>
|
46
48
|
|
49
|
+
<td th:unless="${#strings.isEmpty(productInfo.productImgOut)}">
|
47
50
|
|
51
|
+
<img th:src="@{'data:image/jpeg;base64,' + ${productInfo.productImgOut}}">
|
52
|
+
|
53
|
+
</td>
|
48
54
|
|
49
55
|
```
|
1
追記
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
登録時はバイナリで登録すると、DB系ツールで画像の表示(確認)ができるので便利です。
|
2
2
|
|
3
3
|
|
4
4
|
|