[Spring] org.springframework.beans.factory.NoSuchBeanDefinitionException 에러


[Spring] org.springframework.beans.factory.NoSuchBeanDefinitionException 에러

#spring #nosuchbeandefinitonexception #자바오류 #자바객체생성오류 #스프링에러 #자바빈오류 에러 메시지 org.springframework.beans.factory.NoSuchBeanDefinitionException : No bean named '******' is defined 원인 분석 : 객체(bean)를 찾지 못하는 에러 1. .Resource명과 Service명 불일치 할 경우 2. annotation 정의 되어 있지 않을 경우 3. dispatcher-servlet.xml 설정 4. 빌드 오류 해결 방법 1.

~~ServiceImpl.java 의 @Service( "~~~ServiceImpl" ) 와 ~~Controller.java 의 @Resource(name="~~Service" ) 확인 대소문자 구분하여 모두 일치할 것 2. 프로젝트 > Properties > Deployment Assembly Source Deploy Path /sr...


#nosuchbeandefinitonexception #spring #스프링에러 #자바객체생성오류 #자바빈오류 #자바오류

원문링크 : [Spring] org.springframework.beans.factory.NoSuchBeanDefinitionException 에러