기록해! 정리해!

thymeleaf - hello (연산, 문자열, 반복문,if) 본문

SpringBoot

thymeleaf - hello (연산, 문자열, 반복문,if)

zsuling 2022. 10. 14. 16:59

1. hello.html

 

- 문자열 방법 2가지 

1) + 사용

2) 파이프라인 사용

2. BoardController

결과)


- 반복문

 hello.html

<span th:each="m : ${#numbers.sequence(1,5)}" >
 <span th:text="${m} +'.'+${name}" ></span> <br>
 </span>

결과)


- 누적합 찍어보기

- if문

 

'SpringBoot' 카테고리의 다른 글

Thymeleaf - maven install  (0) 2022.10.17
Tymeleaf 구조알기  (0) 2022.10.17
thymeleaf - getBoardList (날짜+합계)  (0) 2022.10.14
thymeleaf - getBoard 수정하기 + 순번  (0) 2022.10.14
thymeleaf - getBoard 상세보기+delete  (0) 2022.10.14
Comments