728x90
question_list.html์ spanํ๊ทธ ์ถ๊ฐํด์ ๋ต๋ณ ๊ฐ์๊ฐ ์ถ๋ ฅ๋๋๋ก ํ๋ค.
<a
th:href="@{/question/detail/__${question.id}__}"
th:text="${question.subject}"
></a>
<span
class="text-danger small ms-2"
th:if="${#lists.size(question.answerList)>0}"
th:text="${#lists.size(question.answerList)}"
>
</span>
0๋ณด๋ค ๋ต๋ณ์ด ๋ง์ผ๋ฉด ๋ฆฌ์คํธ์ ์ฌ์ด์ฆ๋ฅผ ์ถ๋ ฅํ๋ผ๋ ์กฐ๊ฑด๋ฌธ ์ค
ํ ์คํธํ๊ธฐ


728x90
'BACKEND > SpringBoot' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| ํ์๊ฐ์ ์ฒ๋ฆฌ(์ ํจ์ฑ๊ฒ์ฌ, ๋น๋ฐ๋ฒํธ ์ํธํ, ์ค๋ณตํ์๊ฐ์ ์ฒ๋ฆฌ) (0) | 2023.11.10 |
|---|---|
| ์คํ๋ง ์ํ๋ฆฌํฐ (0) | 2023.11.10 |
| ๊ฒ์๋ฌผ์ ์ผ๋ จ๋ฒํธ ์ถ๊ฐํ๊ธฐ (1) | 2023.11.09 |
| ํ์ด์ง (0) | 2023.11.09 |
| ์๋ฌ ์ฐฝ , ๋ค๋ธ๋ฐ ๋ชจ๋ํ (2) | 2023.11.09 |