<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!-- 加载外部的jdbc配置文件信息 -->
<bean id ="mappings" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations" value="classpath*:jdbc.properties"></property>
</bean>
<!-- Spring Datasource配置 -->
<bean >true</prop>
</props>
</property>
<!-- 配置映射文件 -->
<property name="configLocations">
<array>
<value>classpath*:cn/right.hbm.xml</value>
</array>
</property>
<!-- 以下是物供实体映射的配置文件 -->
<property name="mappingLocations">
<list>
<value>classpath:/cn/entity/*.hbm.xml</value>
</list>
</property>
</bean>
<!-- hibernate Template 配置-->
<bean ></property>
</bean>
<!-- 加载权限Spring配置文件 -->
<import resource="classpath*:cn/right-Spring.xml" />
</beans>