반응형 JPA4 [Spring][React] Failed to validate connection Possibly consider using a shorter maxLifetime value. 에러 해결 방법 ✅ 참고백엔드 프로젝트의 구성은 Spring 3.X 버전과 JPA로 구성되었으며,프론트엔드 프로젝트는 React와 React Query(tanstack query) 등으로 구성되었습니다.해당 에러 메시지를 정확하게 이해하려면 Spring의 SpringDB에 대한 이해와 JPA의 OSIV에 대한 정확한 이해가 필요합니다.참고: SpringDB에 대한 이해는 JDBC와 JPA의 관계, Spring의 ConnectionPool입니다. 🚨 서버 실행 중 Spring Log에서 발생한 에러 메시지com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connectionPossibly consider using a shorter maxLifeti.. 2025. 1. 25. [Spring] QueryDSL 설정 총 정리 (build.gradle) ✅ 참고Spring boot 3.X 버전에서의 QueryDSL 설정 방법과 Spring boot 2.X 버전에서의 QueryDSL 설정 방법은 다릅니다.설정 방법이 다른 이유는 Spring boot 2.X 버전에서 Spring boot 3.X 버전으로 올라오면서 Java17로 변경되었습니다.Java의 버전이 변경되며, 폴더 구조가 javax에서 jakarta로 변경되었기 때문입니다.따라서 본인이 사용하고 있는 Spring boot 버전에 따라서 아래 코드를 참고해 주세요. 📄 Spring boot 3.x 이상 QueryDSL 설정build.gradledependencies { // queryDSL 설정 implementation "com.querydsl:querydsl-jpa:${depe.. 2024. 11. 24. [ 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][Spring] Unable to load class 'javax.persistence.Entity' 에러 해결 방법 🚨 build 시 발생한 에러 메시지Unable to load class 'javax.persistence.Entity'.This is an unexpected error. Please file a bug containing the idea.log file.import com.example.demo.domain.QEntity ❓에러 발생 이유Spring 버전과 QueryDSL의 설정 차이로 발생하게 되는 에러 메시지입니다.Spring 2.x 버전에서 Spring 3.x 버전으로 올라오면서 Java17버전을 사용하게 되었습니다.JAVA17 버전의 가장 큰 특징 중 하나는 폴더 구조가 javax에서 jakarta로 변경된 것 입니다.Spring 2.X 버전과 Spring 3.X 버전의 QueryDSL을 i.. 2024. 3. 4. 이전 1 다음 반응형