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

0

๐Ÿ‘ป WHYGRAMย 

๋ชฉ๋ก ๋ณด๊ธฐ
4/16
post-thumbnail

๐Ÿ”น ์—๋Ÿฌ

  • 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>๋ฅผ ๋งจ ์œ„์— ์˜ฌ๋ ค๋†จ์œผ๋‹ˆ๊นŒ ์•ˆ๋˜๋Š” ๊ฑฐ์ง€~~!!!

profile
๋ช‡ ๋ฒˆ์„ ๋„˜์–ด์ ธ๋„ ์•ž์œผ๋กœ ๊ณ„์† ๋‚˜์•„๊ฐ€์ž

1๊ฐœ์˜ ๋Œ“๊ธ€

comment-user-thumbnail
2023๋…„ 9์›” 4์ผ

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค ใ…‹ใ…‹ ์ €๋„ ๋ฐ”๋ณด์ง“์œผ๋กœ ์‹œ๊ฐ„ ๋‚ ๋ ธ๋„ค์š”

๋‹ต๊ธ€ ๋‹ฌ๊ธฐ