fragment 설정 ( 참조페이지 - 헤더 푸터 )
<th:block th:include="footer :: index_footer"/> 현재 가능하나 아래와 같은 WARN 이 출력됨. Deprecated unwrapped fragment expression "/footer :: index_footer" found in template /board/board_view, line 36, col 11. Please use the complete syntax of fragment expressions instead ("~{/footer :: index_footer}"). The old, unwrapped syntax for fragment expressions will be removed in future versions of Thymeleaf.
<th:block th:replace="~{footer :: index_footer}"/> 앞으로 이렇게 사용해야 WARN 없음
- application.properties spring.thymeleaf.prefix=classpath:templates/ spring.thymeleaf.suffix=.html spring.thymeleaf.cache=false spring.thymeleaf.check-template-location=true .. 이렇게 설정이 되어 있을때 .. Undertow 실행 시 .. 아래와 같이 설정해야 서버에 오류가 없음. /project/user/header 맨앞에 / 를 없애야 정상 작동하는 버그???
java -jar undertow-project-0.0.1-SNAPSHOT.jar <th:block th:replace="~{project/user/header :: index_header}"/> .. <th:block th:replace="~{project/user/footer :: index_footer}"/>