일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
- 적용우선순위
- 테스트메소드
- docker명령어
- AuthenticationEntryPoint
- subquery
- MySQL
- ㅔㄴ션
- WeNews
- 메세지수정
- 예약
- 커밋메세지수정
- 추후정리
- 컨테이너실행
- application.yml
- 서브쿼리
- querydsl
- 포트
- Query
- 테스트
- 외부키
- ubuntu
- 2 > /dev/null
- appspec
- 참조키
- foreignkey
- 검색
- appspec.yml
- EC2
- 네이티브쿼리
- 메소드명
- Today
- Total
목록BugNote (31)
제뉴어리의 모든것
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/d2ThAv/btqYbJthD2k/AWMsV2fkkKGmbllzLkVAn0/img.png)
IDE : Intellij Ultimate 20.3 Build Tool : Maven 2.4.2 프로젝트를 compile 하려는데 잘만 되던게 갑자기 되지를 않았다.. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources) on project mymall: Input length = 1 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enabl..
에러 메세지 : reason: actual and formal argument lists differ in length 원인 : @Builder와 @NoArgsConstructor를 함께 사용하면, 컴파일 시 에러가 발생한다. 해결 방법 : @Builder를 적용한 Entity에 @AllArgsConstructor도 함께 달아주거나 모든 필드를 가지는 생성자를 손수 만들어 주면 된다.
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bXjU05/btqWRafMwgy/YS5moc4v3pHq8MoVZR2EIk/img.png)
- 현재 상황 아래와 같이 Board 테이블과 Member 테이블이 존재한다. 그리고 Board의 writer_id는 Member의 id를 참조하고 있다 (Board.writer_id -> Member.id) Entity적 상황 : N : 1 상황인 두 엔티티 Board : Member 가 있으며 (한 멤버가 게시물을 여러개 쓸 수 있으므로) Board는 Member를 참조하고 있으며 아래는 두 Entity 구조의 구조이다. 그리고 위에 두 엔티티를 JOIN하여 가져오는 소스는 아래와 같다. Object objects = entityManager.createQuery("select b, w from Board b left join b.writer_id w") .getResultList(); 그런데 이 소..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/SteKG/btqVh644vqx/6vndurKEHWKKyPCKwNJ4iK/img.png)
//테스트 코드 작성 시 아래와 같은 에러 발생. Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=...) with your test Unable to find a @SpringBootConfiguration, you need to use @ContextConfiguration or @SpringBootTest(classes=…) with your test 라는 오류가 발생한다면 @SpringBootApplication 애노테이션이 붙은 클래스가 존재하는 패키지의 하위 패키지에 테스트를 둬야 한다는 원칙을 어긴 것이다. 예: a.b.c.Application 이라..
#1 언제 : spring boot 기반 프로젝트 빌드시 발생 에러 내용 : No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 원인 : 프로젝트에 JDK가 아니라 JRE가 적용 되있어서 발생 된듯 해결 방법 : intellij 에서 jdk를 다운받아서 적용해봤지만 해결되지 않아서 amazon correto 11 버전을 직접 msi로 설치하여 해당 폴더를 선택하니 해결됨 #2 언제 : intellij Terminal 상에서 빌드 된 jar 파일 RUN 시키려 할때 (java -jar 명령어 사용) 에러 내용 : unable to access jarfile 원인 : jar 파일 경로를 ..
Intellij 콘솔 에러 메세지 Caused by: java.lang.IllegalStateException: org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing : org.zerock.board.entity.Board.writer -> org.zerock.board.entity.Member 원인 : "Member" 테이블의 특정 필드가 "Board" 테이블과 외부키(FK)로 연결되어 있는데 "Board" 테이블을 만들때 값을 넣고 save 하려고 하니 "Board" 테이블의 값과 매칭 되는 FK 값이 "..