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();
}
}
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();
}
}
'공부 > Spring' 카테고리의 다른 글
스프링 부트 3 백엔드 개발자 되기_13 (0) | 2023.08.21 |
---|---|
스프링 부트 3 백엔드 개발자 되기_12 (0) | 2023.08.16 |
스프링 부트 3 백엔드 개발자 되기_10 (0) | 2023.08.11 |
스프링 부트 3 백엔드 개발자 되기_9 (0) | 2023.08.09 |
스프링 부트 3 백엔드 개발자 되기_8 (0) | 2023.08.08 |