getBean("subjectService");还有你parse(ApplicationContext.xml)的路径怎么没有标注?ApplicationContext.xml<bean id="subjectService" class=""></bean>

解决方案 »

  1.   

    路径我配了,写在ApplicationContext.java中!
    这个冒号的低级错误我也发现了!呵呵!
    她这个class=“”里面应该是什么类啊?也就是是说这个类里面应该是什么东西?
      

  2.   

    应该是你面向对象思想中想要new 的那个类,按包路径把他加上去~~~~
    例如  <bean id="helloSpeaker" class="com.auv.HelloSpeaker"></bean>
    明白了么?