解决方案 »

  1.   

    有没有使用<context:component-scan  配置自动扫描Bean的?
      

  2.   

    扫描了之后,bean才会创建吧?
      

  3.   

    唉..........
    <!-- 使用annotation 自动注册bean, 并保证@Required、@Autowired的属性被注入 -->

    <context:component-scan base-package="com.jfpal" >
    </context:component-scan>这里的com.jfpal  是你自己的包路径
      

  4.   

    注射的和被注射的都要在容器中注册,或者自动扫描,或者xml配置
      

  5.   


    最后一个问题,我扫描了
    <context:component-scan base-package="com.xxx.ws"/> 发现不行,我的文件目录是这样的:
    ws.a
    ws.b
    ws.c
    所以我应该
    <context:component-scan base-package="com.xxx.ws.*"/>
    这么扫描吗?好像这么扫描也不行。
      

  6.   


    还是因为我扫描多个包
        <context:component-scan base-package="com.xxx.biz"/>
       <context:component-scan base-package="com.xxx.ws"/>
    这么写是错的?
      

  7.   

    谢谢大家的回复,最后发现server的soap配置换成
    <jaxws:endpoint 就好了