아래처럼 "| 여기에 입력하면 문자열로 인식한다. |"
<a th:href="|/download/${file.fileNo}|" th:title="${file.fileOrgName}">
이렇게 안하면 문자와 표현식(${})을 + 쓰고 이스케이프('\') 쓰고 코드가 지져분해지고 가독성도 안 좋아진다.
"| |" 활용해서 사용하자.
'💻 it > development' 카테고리의 다른 글
| [springBoot] spring security passwordEncode (0) | 2025.11.23 |
|---|---|
| [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 |
댓글