出现
org.springframework.beans.factory.BeanCreationException这个错误,不知道怎么改了,大家帮帮忙
bean.xml文件的内容[b][/b] <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName" value="com.microsoft.sqlserver.jdbc.SQLServerDriver">
</property>
<property name="url"
value="jdbc:sqlserver://localhost:1433;DatabaseName=HR_DB">
</property>
<property name="username" value="sa"></property>
<property name="password" value="12"></property>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.SQLServerDialect
</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>com/myhr/entity/Bonus.hbm.xml</value>
<value>com/myhr/entity/ConfigFileFirstKind.hbm.xml</value>
<value>com/myhr/entity/ConfigFileSecondKind.hbm.xml</value>
<value>com/myhr/entity/ConfigFileThirdKind.hbm.xml</value>
<value>com/myhr/entity/ConfigMajor.hbm.xml</value>
<value>com/myhr/entity/ConfigMajorKind.hbm.xml</value>
<value>com/myhr/entity/ConfigPrimaryKey.hbm.xml</value>
<value>com/myhr/entity/ConfigPublicChar.hbm.xml</value>
<value>com/myhr/entity/ConfigQuestionFirstKind.hbm.xml</value>
<value>com/myhr/entity/ConfigQuestionSecondKind.hbm.xml</value>
<value>com/myhr/entity/EngageAnswer.hbm.xml</value>
<value>com/myhr/entity/EngageAnswerDetails.hbm.xml</value>
<value>com/myhr/entity/EngageExam.hbm.xml</value>
<value>com/myhr/entity/EngageExamDetails.hbm.xml</value>
<value>com/myhr/entity/EngageInterview.hbm.xml</value>
<value>com/myhr/entity/EngageMajorRelease.hbm.xml</value>
<value>com/myhr/entity/EngageResume.hbm.xml</value>
<value>com/myhr/entity/EngageSubjects.hbm.xml</value>
<value>com/myhr/entity/HumanFile.hbm.xml</value>
<value>com/myhr/entity/MajorChange.hbm.xml</value>
<value>com/myhr/entity/MenutreeInfo.hbm.xml</value>
<value>com/myhr/entity/SalaryGrant.hbm.xml</value>
<value>com/myhr/entity/SalaryStandard.hbm.xml</value>
<value>com/myhr/entity/SalaryStandardDetails.hbm.xml</value>
<value>com/myhr/entity/SysRole.hbm.xml</value>
<value>com/myhr/entity/SysRoleRight.hbm.xml</value>
<value>com/myhr/entity/SysUser.hbm.xml</value>
<value>com/myhr/entity/Sysdiagrams.hbm.xml</value>
<value>com/myhr/entity/Training.hbm.xml</value>
</list>
</property>
</bean>
bean-fanbo文件里面的内容[color=#FF0000][/color]<import resource="bean.xml"/>
<!-- testdao -->
<bean id="testdao" class="com.myhr.dao.impl.TestdaoImpl">
<property name="sessionFactory" ref="sessionFactory"></property>
&l