일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- PostgreSQL
- error
- myBatis
- Python
- JavaScript
- Thymeleaf
- AJAX
- spring
- Exception
- git
- Open Source
- STS
- Core Java
- 문서
- Source
- Tomcat
- jpa
- oracle
- JDBC
- Eclipse
- Docker
- IntelliJ
- MSSQL
- MySQL
- 오픈소스
- SpringBoot
- 설정
- maven
- Spring Boot
- ubuntu
- Today
- Total
헤르메스 LIFE
[Thymeleaf] Fragment expression "layout/basic" is being wrapped as a Thymeleaf 3 fragment expression (~{...}) for backwards compatibility purposes 본문
[Thymeleaf] Fragment expression "layout/basic" is being wrapped as a Thymeleaf 3 fragment expression (~{...}) for backwards compatibility purposes
헤르메스의날개 2023. 6. 17. 23:25Thymeleaf 화면에서 아래와 같은 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}">