thymeleaf에서 문자열 합치기
<td th:text="|${#strings.substring(list.annualStrDt, 0,4)}년 ${#strings.substring(list.annualStrDt, 5,7)}월 ${#strings.substring(list.annualStrDt, 8,10)}일|"></td>
제일 깔끔한 건 ||안에 리터럴("문자열")과 표현식(${})을 넣으면 된다.
'💻 it > development' 카테고리의 다른 글
| [JavaScript] 현재날짜와 특정날짜 비교 (0) | 2025.11.23 |
|---|---|
| [thymeleaf] 리터럴 대체 (0) | 2025.11.23 |
| [thymeleaf] js에서 thymeleaf값 사용하기 (0) | 2025.11.23 |
| [IDE] IntelliJ 탭 좌/우 이동(feat. Tab Shifter) (0) | 2025.11.23 |
| [mybatis] update 동적 쿼리(feat. <set></set>) (0) | 2025.11.23 |
댓글