[Thymeleaf] Thymeleaf 기본 문법 사용 예제
Thymeleaf 오늘은 Thymeleaf에 선언에 대하여 알아보도록 하자. implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' gradle dependencies에 해당 구문을 추가 해준다. html 상단에 thymeleaf를 사용함을 명시 해준다. 내가 자주 썼던 태그들을 모아놨다. th:text Controller에서 값을 호출 할때 ${} 형식으로 나타내어 사용한다. th:href 가입하기 Controller에 있는 /auth/signup의 주소와 일치 하는 부분을 실행 link 참조로 css 넣기 link 참조로 외부 css 넣기 th:action 주소 타입과 같은 형식 th:onclick 에 파라미터 넣기 버튼 " |..