분류 전체보기
-
[QUERYDSL] querydsl 전용 메서드/라이브러리 정리Spring Boot 2023. 2. 18. 21:10
com.querydsl.core.types.Projections querydsl에서의 Projections를 활용하면 더 편하게 사용할 수 있다. 다만, JPA가 dto를 만들어줄 때 기본생성자가 필요해서 MemberDto에 @NoArgsConstructor를 추가한다. Projections.constructor 조회를 원하는 필드를 포함한 생성자가 반드시 있어야 한다. 그리고 dto에서 생성자의 파라미터들의 타입과 순서가 select 절에서의 타입과 순서와 일치해야한다. 또한 compile 전에 에러를 잡아주지 못한다는 단점이 있다. Projections.fields Projections.fields 방식은 dto에서 정의한 필드의 이름과 select절에서의 각 필드명이 일치해야 한다. 만약 일치할 수..
-
Cannot construct instance of `` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator) at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 2, column: 1]에러 일기 2023. 2. 18. 15:04
컨트롤러에서 API 매개변수에 @RequestBody 어쩌구Dto
-
[AWS]터미널로 EC2에 접속하기, 빌드파일 업로드AWS 2023. 2. 16. 20:54
EC2 인스턴스 접속 ssh -i /Users/jaewonee/Desktop/ola.pem ubuntu@ec2-13-125-207-42.ap-northeast-2.compute.amazonaws.com 빌드파일 업로드 하기 scp -i [pem파일경로] [업로드할 파일 이름] [ec2-user계정명]@[ec2 instance의 public DNS]:~/[경로] ex) scp -i /Users/jaewonee/Desktop/ola.pem /Users/jaewonee/Desktop/sparta/06_project/final-project/back/build/libs/sparta-0.0.1-SNAPSHOT.jar ubuntu@ec2-13-124-10-148.ap-northeast-2.compute.amazon..