๋ฐฐํฌํ๋๊น ์๋ฌ๊ฐ ๋๊ณ ์คํ์ด ์๋์ ๋งค์ฐ ๋นํฉ์ค๋ฌ์ ๋๋ฐ
org.thymeleaf.TemplateEngine: [THYMELEAF][http-nio-8090-exec-1] Exception processing template "index":
An error happened during template parsing (template: "class path resource [templates/index.html]")
org.thymeleaf.exceptions.TemplateInputException:
An error happened during template parsing
(template: "class path resource [templates/index.html]")
์๋ฌ๊ฐ ๊ต์ฅํ ๊ธธ์ง๋ง ๋์ถฉ ์์ชฝ์ ์ฝ์ด๋ณด๋ ํ์๋ฆฌํ ๊ด๋ จ ์์ฑ์ด ์๋ฌ๊ฐ ์๋๊ฒ ๊ฐ์๋ค.
๋ฌธ์ ๋ ํ์๋ฆฌํ์์
th:replace= ๋ก ๊ฐ์ ธ์ฌ๋ ๋งจ์๋ถ๋ถ์ /๋ฅผ ํฌํจ์์ผ์ ์ผ์ด๋ ๊ฒ์ด์๋ค.
์์
<!-- # ๋ ์จ ๋ฐ์ดํฐ -->
<th:block th:replace="~{/comp/weather :: weatherFragment}">
</th:block>
์ด๋ ๊ฒ ๋์ด์๋๊ฑธ
<!-- # ๋ ์จ ๋ฐ์ดํฐ -->
<th:block th:replace="~{comp/weather :: weatherFragment}">
</th:block>
์ด๋ ๊ฒ ๋ฐ๊ฟ์ฃผ๋ ํด๊ฒฐ๋์๋ค.
๋