๐Ÿ‘ป [WHYGRAM] | [HTML] | IllegalArgumentException , TemplateInputException , feed/home ์œผ๋กœ ๊ฒฝ๋กœ๋ณ€๊ฒฝ์€ ๋˜์ง€๋งŒ ํŽ˜์ด์ง€๊ฐ€ ๋œจ์ง€ ์•Š๋Š”๋‹ค

1657 ๋‹จ์–ด ERR๐Ÿ˜ˆR.zipERR๐Ÿ˜ˆR.zip

๐Ÿ”น ์—๋Ÿฌ

  • feed/home ์œผ๋กœ ๊ฒฝ๋กœ๋ณ€๊ฒฝ์€ ๋˜์ง€๋งŒ ํŽ˜์ด์ง€๊ฐ€ ๋œจ์ง€ ์•Š๋Š”๋‹ค

๐Ÿ”น ์—๋Ÿฌ๋ฉ”์‹œ์ง€

โœ… TemplateInputException

An error happened during template parsing 
(template: "class path resource [templates/feed/home.html]")
org.thymeleaf.exceptions.TemplateInputException: 
An error happened during template parsing 
(template: "class path resource [templates/feed/home.html]")

  • TemplateInputException ์ด๋‹ˆ๊นŒ html๋ฌธ์ œ์ด๋‹ค.
  • ์‹œํ๋ฆฌํ‹ฐ๋Š” ์ž˜ ์ž‘๋™ํ•˜๋Š” ๊ฒƒ ๊ฐ™๋‹ค.

โœ… IllegalArgumentException

โœ… layout-decorate must appear in the root element

java.lang.IllegalArgumentException: layout:decorate/data-layout-decorate must appear in the root element of your template

์›์ธ && ํ•ด๊ฒฐ

  • ์—ญ๋Œ€๊ธ‰ ๋ฐ”๋ณด
  • <html>ํƒœ๊ทธ๊ฐ€ ๋งจ ์œ„์— ์žˆ์–ด์•ผ์ง€~~~!!!!!!!!!!!!!!!!
  • <html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorator="pageLayout"> ๊ฐ€ ๋งจ์œ„์— ์žˆ์–ด์•ผ ์ง€~!!!!!
  • ๊ทผ๋ฐ ๋ฐ”๋ณด๊ฐ™์ด <meta>๋ฅผ ๋งจ ์œ„์— ์˜ฌ๋ ค๋†จ์œผ๋‹ˆ๊นŒ ์•ˆ๋˜๋Š” ๊ฑฐ์ง€~~!!!

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ