본문 바로가기
반응형

JAVA/Error12

[ Spring ] TransientPropertyValueException 에러 해결 방법 💥 application run 시 발생한 에러 메시지Error creating bean with name 'initDb': Invocation of init method failedCaused by: java.lang.IllegalStateException: org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing : jpabook.jpashop.domain.OrderItem.item -> jpabook.jpashop.domain.item.ItemCaused by: org.hibernate.TransientP.. 2024. 5. 20.
[ QueryDSL ] Parameter 0 of constructor in ArticleRepositoryCustomImpl required a bean of type 'java.lang.Class' that could not be found. 에러 해결 방법 💥 Application run 시 발생한 에러 메시지Description:Parameter 0 of constructor in com.example.demo.repository.querydsl.ArticleRepositoryCustomImpl required a bean of type 'java.lang.Class' that could not be found.Action:Consider defining a bean of type 'java.lang.Class' in your configuration. ❓에러 발생 이유Consider defining a bean of type 'java.lang.Class' in your configuration.라는 문구는 보통 Spring이 실행되면서 java 파일.. 2024. 4. 10.
[ QueryDSL ][ Spring ] attempt to recreate a file for type qclass 에러 해결 방법 💥 build 시 발생한 에러 메시지attempt to recreate a file for type qclass ❓에러 발생 이유QueryDSL의 QClass 파일의 중복 문제로 발생한 에러입니다. ✅ 해결 방법 ✔️ 해결 방법해당 프로젝트의 build 폴더를 삭제 후 다시 build 해주면 기존 QClass 파일이 삭제되며 build 시 새로 생기게 되며 QClass 파일의 중복 문제를 해결할 수 있습니다.build clean -> build 2024. 4. 10.
[ Spring ] java.lang.IllegalArgumentException: Name for argument of type 에러 해결 방법 💥 application run 시 발생한 에러 메시지java.lang.IllegalArgumentException: Name for argument of type [com.example.demo.domain.type.SearchType] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag.   ❓에러 발생 이유build를 인텔리제이로 해서 발생한 에러이다. 인텔리제이에서 빌드할 때는 -parameters' 플래그가 기본적으로 사용되지 않을 수 있습니다. ✅ 해결 방법 ✔️ 해결 방법 build를 인텔리제이에서 gradle로.. 2024. 4. 10.
반응형