[Thymeleaf] Fragment expression "layout/basic" is being wrapped as a Thymeleaf 3 fragment expression (~{...}) for backwards compatibility purposes
Thymeleaf 화면에서 아래와 같은 WARN 이 발생되었습니다.
" 'layout/basic' 라는 표현식이 Thymeleaf 3 표현식에 맞지 않는다. 이전 버전과의 호환성을 위해 ~{...} 로 변경해라"라는 내용으로 보여집니다. 친절하게 이슈를 처리할 수 있는 issues 페이지 링크를 보여주기까지 하는군요.
WARN 23-06-17 23:04:010[http-nio-9999-exec-1] [1;35m[▶ nz.net.ultraq.thymeleaf.expressionprocessor.ExpressionProcessor.fromCache ◀][0;39m[318]: - Fragment expression "layout/basic" is being wrapped as a Thymeleaf 3 fragment expression (~{...}) for backwards compatibility purposes. This wrapping will be dropped in the next major version of the expression processor, so please rewrite as a Thymeleaf 3 fragment expression to future-proof your code. See https://github.com/thymeleaf/thymeleaf/issues/451 for more information.
WARN 23-06-17 23:04:141[http-nio-9999-exec-1] [1;35m[▶ nz.net.ultraq.thymeleaf.layoutdialect.fragments.FragmentProcessor.defaultCall ◀][0;39m[47]: - 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.
아래의 코드를
<html lang="ko" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="layout/basic">
아래와 같이 변환해서 해결 했습니다.
<html lang="ko" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout/basic}">