Thymeleaf
-
Spring-boot , thymeleaf 사용하기Spring 2019. 9. 8. 19:55
Spring 쪽에서 템플릿 엔진 쓰기를 권장하고 있으니 JSP 를 걷어내고 thymeleaf 설정을 해보자. (사실 csrf 땜에 구찮게 hidden 값을 넣고 싶지 않어서 시작!) 기존 JSP 설정 삭제하고 thymeleaf 설정 1. gradle 설정 2. application.yml 설정 3. jsp 파일들 경로 변경 : 기본 설정이 templates 폴더이고 확장자를 .html 을 사용한다고 한다. 그래서 파일을 옮겨서 .jsp 를 html 로 바꿨다. 참고 URL 간략소개 : https://eblo.tistory.com/54 기본문법 : https://www.baeldung.com/thymeleaf-in-spring-mvc 문법(이게 더 간단해서 맘에듬) : http://progtrend.blo..