저는 포털 프로젝트 작업을하고 있습니다. 포틀릿을 WebSphere에 배치 할 때 NoSuchBeanDefintionException
을 얻었으며 component-scan
패키지를 확인하고 그에 대해 봤지만 어떤 해결책도 찾지 못했습니다. 모든 포틀릿의 context.xml에있는 모든 필수 패키지해당 bean 정의가 없습니다.
내가 구성 요소 검사에 필요한 모든 패키지를 추가 한 로그
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.myhealthone.common.model.Account com.hca.cpp.coreservice.UserServiceImpl.account; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.myhea.common.model.Account] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@ringframework.beans.factory.annotation.Autowired(required=true)}
> at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcesva:514)
> at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
> at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor285)
... 147 more
> Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.myhealthone.common.model.Account] found for depy: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotatiowired(required=true)}
아래를 참조하십시오.
'com.myhea.common.model.Account' 당신은'Service' 또는'Resource' 등과 같은 모든 고정 관념이 클래스에 주석을 했습니까? –
이 문제가 해결 되었습니까? 그렇다면 어떻게 해결 했습니까? – Xstian