이 누리집은 대한민국 공식 전자정부 누리집입니다.
적용 지원, FAQ, Q&A 게시판을 통해 기술 문제 해결을 지원합니다.
오*도
2010-08-31 21:01:40
3,297
실행환경
완료
안녕하세요...
아래와 같은 에러가 발생하는데, 도대체 뭣때문이지 알수가 없네요.
감사합니다.
--------------------- 아래 ---------------------
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SEDDocContr
ller': Autowiring of fields failed; nested exception is org.springframework.beans.factory.BeanCreat
onException: Could not autowire field: private com.sed.doc.service.SEDDocService com.sed.doc.contro
ler.SEDDocController.docService; nested exception is org.springframework.beans.factory.NoSuchBeanDe
initionException: No unique bean of type [com.sed.doc.service.SEDDocService] is defined: Unsatisfie
dependency of type [interface com.sed.doc.service.SEDDocService]: expected at least 1 matching bea
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postPr
cessAfterInstantiation(AutowiredAnnotationBeanPostProcessor.java:243)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBea
(AbstractAutowireCapableBeanFactory.java:959)
안녕하세요.. 오병도님..
해당 문제는 'SEDDocContrroller에서 SEDDocService를 injection하도록 되어 있으나 (@Autowired 사용 또는 @Resource 사용) .. 실제 SEDDocService 타입으로 정의된 @Service가 없어서 발생한 문제입니다.
com.sed.doc.service.SEDDocService 인터페이스를 상속하는 SEDDocServiceImpl 클래스 생성을 확인하시고.. 해당 클래스에 @Service로 정의되어 있는지 확인해 보시면 될 것 같습니다.
그럼.. 즐거운 하루되십시오.
감사합니다.