Html - thymeleaf 문자열 연결

youngkyu MIn·2023년 9월 1일
		<td>
            <a th:href="@{|/question/detail/${question.id}|}" th:text="${question.subject}"></a>
        </td>

th:href 처럼 URL 주소를 나타낼때는 반드시 @{ 문자와 } 문자 사이에 입력해야 한다.

타임리프는 문자열을 연결(concatenation)할 때 | 문자를 사용한다.

profile
한 줄 소개

0개의 댓글