解决方案 »

  1.   

    Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.sqjzws.dao.BaseDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, mappedName=, description=, name=, type=class java.lang.Object, lookup=, authenticationType=CONTAINER)}
    至少需要一个BaseDao 的实现,但没有找到
    检查检查自己的配置和注解
      

  2.   

    我有BaseDao的实现类呀只是不知道怎么在applicationContext.xml配置调用。。加《bean》??
      

  3.   

    这个是spring的基本配置啊,这个楼主看看spring的基本配置吧,如果是spring和struts融合的话,看是直接将struts的action交给spring初始化还是只让spring给action注入action需要的service组件呢,弄清楚再进行配置。
    如果楼主初学,建议看看《spring3.x企业应用开发实战》