@QueryProjection
public FindAllPostDto(Long postId,
String name,
String title,
String content,
Category category,
Long price) {
this.postId = postId;
this.name = name;
this.title = title;
this.content = content;
this.category = category;
this.price = price;
this.createdDate = createdDate;
}
이렇게 생성자를 만들었음에도 인식이 되지않았다 하지만 빌드 방식을 gradle로 변경하니 됐다.
'트러블 슈팅' 카테고리의 다른 글
CSP오류 해결 (0) | 2024.02.01 |
---|---|
리액트 셋팅에 관련된 것 (0) | 2024.02.01 |
MapStruct 맵핑 못하는 문제 (0) | 2024.01.04 |
ids for this class must be manually assigned before calling save(): (0) | 2024.01.03 |
headers에 location이 안보일 경우 해결 방법 (0) | 2023.12.30 |