본문 바로가기

Thymeleaf2

You don't need to put the layout:fragment/data-layout-fragment attribute into the <head> section - the decoration process will automatically copy the <head> section of your content templates into your layout page. 타임리프에서 레이아웃 기능을 사용하던 도중 아래와 같은 warning이 출력된 적이 있습니다. n.n.u.t.l.f.FragmentProcessor [75] - You don't need to put the layout:fragment/data-layout-fragment attribute into the section - the decoration process will automatically copy the section of your content templates into your layout page. warning을 읽어보면 레이아웃에서 태그 안에서 fragment를 사용할 필요가 없다고 합니다. 레이아웃을 사용하려는 페이지에서 태그를 만들고 그 안에 내용을 추가하면 레이아웃이 자동으로 해당.. 2023. 4. 23.
Thymeleaf 3.1 release note 💡 이번 포스팅에서는 타임리프 3.1 버전의 변경사항에 대해 정리해 보도록 하겠습니다. Spring 6.0 그리고 Spring Boot가 3.0 각각 메이저 버전이 올라감에 따라 타임리프 또한 호환성을 맞추기 위해 버전을 3.1로 올렸습니다. 자세한 내용은 공식 문서를 참고하시면 좋을 것 같습니다. 먼저 위 3개의 변경 사항은 Spring과 관련이 있는 부분입니다. Spring에서 6.0와의 호환성을 맞추기 위해 javax.\* 패키지 대신 jakarta.\* 패키지가 사용되고, Spring Security 5.X 에서는 타임리프와 연동하기 위해 thymeleaf-extras-springsecurity5 의존성을 사용했는데 이젠 thymeleaf-extras-springsecurity6 의존성을 사용해야.. 2023. 4. 16.