解决方案 »

  1.   

    我去试试!我这貌似没有@Autowired 是版本问题么?我用的是2.0.7版本的。
      

  2.   


    private JdbcTemplate jdbc;
    //使用@Autowired注解之后,将<bean //class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"/>
    //然后我将setter函数删掉了,
    //但是 jdbc对象 装入后是null。
    //这可能是什么问题?哪里出错了? 
      

  3.   

    <context:annotation-config />
      

  4.   

    要么全是注解,要么全是xml。不要混着用。