Spring 生成路径不完整。找不到类文件

Spring 生成路径不完整。找不到类文件,spring,Spring,我使用了frameworkspring,现在将其用于一个小样本项目。但是,我的spring.xml配置文件中不断出现错误: Multiple annotations found at this line: - <bean class="com.dao.StudentDaoImpl" id="stdDaoBean" /> - Build path is incomplete. Cannot find class file for com.dao.Studen

我使用了frameworkspring,现在将其用于一个小样本项目。但是,我的spring.xml配置文件中不断出现错误:

Multiple annotations found at this line:
    - <bean class="com.dao.StudentDaoImpl" id="stdDaoBean" />
    - Build path is incomplete. Cannot find class file for 
     com.dao.StudentDaoImpl
我的代码是:

   <bean class="com.dao.StudentDaoImpl" id="stdDaoBean" />
    <bean class="com.service.StudentServiceImpl" id="stdServiceBean">
        <property name="studentDao" ref="stdDaoBean"></property>
    </bean>

StudentDao这个类存在,我也有弹簧罐;不过,我不知道问题出在哪里。

看起来您的com.dao.StudentDaoImpl类实际上在com.dao以外的其他包中。或者类名不同,您说该类存在,但在spring.xml中使用了StudentDaoImpl名称。因此,请检查包和类名。

si类studentDaoImpl是否存在,但它是否在com.dao包中?为了确保这一点,它应该命名为StudentDaoImpl,因为类名区分大小写。all的拼写不正确,并且类StudentDaoImpl存在于包com.dao中