是不是在
<bean id="drawdao" abstract="false" singleton="true"
lazy-init="default" autowire="default" dependency-check="default">
里要加上class="com.huas.action.drawDAO"我也是新手,不知道对不对.

解决方案 »

  1.   

    你的Spring是哪个版本,JDK是哪个版本???
      

  2.   

    spring spring-framework-1.2.9-with-dependencies.zip
    jdk1.60
      

  3.   

    你把<bean id="drawdao" abstract="false" singleton="true"
    lazy-init="default" autowire="default" dependency-check="default">
    中的class属性加上去~
      

  4.   

    你的那错显然是<bean id="drawdao" abstract="false" singleton="true"
    lazy-init="default" autowire="default" dependency-check="default">
    中没有class属性的错~~~
      

  5.   

    你的想法是可以的,但是你的写法有很多问题..........................
    drawPicture dp=(drawPicture)actx.getBean("drawdao");
    "drawdao"是得到谁的对象???drawdao这个类的对象吗???那drawPicture 和 drawdao又有什么关系???能被drawPicture 造型吗???
    你这写的逻辑就有一点混乱哦~~~