<?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>

相关文章:

  • 2021-05-08
  • 2022-12-23
  • 2021-09-20
  • 2021-11-25
  • 2022-02-20
  • 2021-12-05
  • 2021-05-27
猜你喜欢
  • 2022-12-23
  • 2022-02-10
  • 2022-03-08
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2021-09-04
相关资源
相似解决方案