본문 바로가기

공부/Spring

스프링 부트 3 백엔드 개발자 되기_11

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri Aug 11 08:38:50 KST 2023
There was an unexpected error (type=Internal Server Error, status=500).
An error happened during template parsing (template: "class path resource [templates/articleList.html]")
org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/articleList.html]") at org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parse(AbstractMarkupTemplateParser.java:241) at
...
 
=> 전에 오타로 이 오류 낸적 있어서 오타문젠줄 알았는데 getter메서드가 없어서 그런거였다
@Getter
public class ArticleListViewResponse {

private final Long id;
private final String title;
private final String content;

public ArticleListViewResponse(Article article) {
this.id = article.getId();
this.title = article.getTitle();
this.content = article.getContent();
}
}