ssh集成中spring配置问题(sessionFactory)
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<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=Userinfo_DB">
</property>
<property name="username" value="sa"></property>
<property name="password" value="123456"></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/test/pojo/Permission.hbm.xml</value>
<value>com/test/pojo/Userinfo.hbm.xml</value>
<value>com/test/pojo/Role.hbm.xml</value>
<value>com/test/pojo/Departmentinfo.hbm.xml</value>
<value>com/test/pojo/UserinfoRoles.hbm.xml</value>
<value>com/test/pojo/PermissionRole.hbm.xml</value></list>
</property>
-->
</bean>
就是我注释的这些映射,注释了发布就没有错,不注释就说我
Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]
错误创建名为'的SessionFactory在类路径资源定义[applicationContext.xml中]豆