반응형

오류 3

[React] 에러 해결하기 _ Cannot destructure property 'language' of '(0 , useLanguage(...))' as it is undefined.

error 메세지Cannot destructure property 'language' of '(0 , useLanguage(...))' as it is undefined.  오류 발생 지점 분석 // src/components/ui/languageSelector/LanguageSelector.jsimport React from "react";import { Globe } from "lucide-react";import { useLanguage } from "../../../contexts/LanguageContext";import "../../../styles/components/languageSelector/_LanguageSelector.scss";const languages = [ { code: ..

[JPA] 빌드 에러 Error creating bean with name ‘entityManagerFactory’

빌드 에러 💡 Error creating bean with name 'entityManagerFactory' defined in class path resource 해결 방법 Error creating bean with name 'entityManagerFactory' defined in class path resource 는 Spring Framework에서 JPA (Java Persistence API)를 사용할 때 발생하는 일반적인 오류 메시지 중 하나 이다. 해당 오류 메시지는 Spring이 entityManagerFactory 빈(bean)을 생성하는 과정에서 문제가 발생했음을 나타내는데 원인이 될 수 있는 몇가지의 경우를 찾아서 정리해보았다. 데이터 소스 설정 오류: application.pr..

[JPA] LazyInitializationException 오류

발생한 오류 LazyInitializationException 오류 메시지 org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.api.teamfresh.entity.Customer.keepers: could not initialize proxy - no Session 관련 코드: VOC voc = vocService.findById(id); 원인: 이 오류는 Hibernate에서 엔터티의 속성이 지연 로딩(Lazy Loading)으로 설정되어 있을 때, 세션이 닫힌 후에 해당 속성에 접근하려고 할 때 발생한다. 여기서는 VOC 엔터티 내의 Customer 의 keepers 속성이 지연..

반응형