[에러] Attempt to recreate a file for type ...

재승·2023년 1월 1일

[gradle] 메뉴 clean, compilejava 수행 후 리파지토리 테스트에서 더미데이터 생성 중 발생한 오류

Attempt to recreate a file for type org.zerock.guestbook.entity.QBaseEntity
Attempt to recreate a file for type org.zerock.guestbook.entity.QGuestbook

원인

이미 Q객체가 생성 후 다시 생성하려는 과정에서 이미 존재한다는 에러가 발생

해결법

build 하위 generated 폴더 삭제


출처
https://qiita.com/kakasak/items/ae6a1335d68e06172d4d
https://vesselsdiary.tistory.com/146
https://kangwoojin.github.io/programing/query-dsl-setting-old/

0개의 댓글