반응형

Thymeleaf에서 문자열 조합
<div th:text="'Hello, ' + ${name} + '!!'"></div>
먼가 지저분하다. 이럴 때, |로 싸주면 문자열을 조합할 수 있다.
<div th:text="|Hello, ${name}!!|"></div>
반응형
'공부 > SpringBoot & Spring' 카테고리의 다른 글
| 스프링 시큐리티(spring security) deprecated (0) | 2022.07.11 |
|---|---|
| mybatis 오류 / attempted to return null from a method with a primitive return type (int) (0) | 2022.07.07 |
| Spring Boot Embeded Tomcat 내장 톰캣 application.properties 설정 (0) | 2022.06.27 |
| spring security + thymeleaf 기능? 적용? (0) | 2022.06.24 |
| Mybatis Mapper 1064(42000) error (0) | 2022.06.23 |