Thymeleaf
1. Thymeleaf는 View Template Engine입니다.
2. 태그의 속성으로 thymeleaf 명령어를 사용할 수 있으며 html 파일 내에서 사용이 가능합니다.

3. com.shop 패키지에 controller 패키지를 추가합니다.
4. controller 패키지에 ThymeleafExController.class 파일을 생성합니다.

5. resource 폴더 아래에 templates 폴더를 생성합니다.
6. thymeleafEx01.html 파일을 생성합니다.
클라이언트가 서버에 ThymeleafExController > GetMapping으로 url 주소을 요청하여 서버에 담겨져 있는 데이터를 model 에 담아서 view 화면 thymeleafEx01.html 파일 보냅니다.

데이터 가 넘어 온걸 확인할수 있습니다.
감사합니다. ~~~

'BackEnd > SpringBoot' 카테고리의 다른 글
머스테치 (0) | 2022.04.24 |
---|---|
Spring Security (0) | 2022.04.13 |
Thymeleaf 페이지 레이아웃 적용 (0) | 2022.04.13 |
Thymeleaf th:each (0) | 2022.04.12 |
Thymeleaf 사용법 (0) | 2022.04.12 |