kahaha 2023. 2. 21. 17:33

진행사항 : 질문 게시판, 회원정보, 답변에  필요한 각각의 매핑

- Tag 클래스 추가하여 게시판과 매핑연동 완료

 

증상 : member Post 500에러

에러 : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed;

 

해결방법 : 생성자 관련 문제로 추정하였고, dto쪽에 @AllArgsConstructor 대신@RequiredArgsConstructor 넣었더니 해결하였음

 

 

증상 : QuestionTag클래스 매핑 작업간 Post500에러 발생

에러: .NoSuchMethodError: 'java.util.List pre14.stackoverflow.questions.dto.QuestionDto$Post.getTags()'

 

해결방법 : QuestionTagDto에 tagId가 없어서 오류가 발생하였음

@Getter
@RequiredArgsConstructor
public class QuestionTagDto {
        private Long tagId; //필수
        private String tagName;
}