applicationcontext.xml配置文件1
来源:互联网 发布:linux。怎么改ip地址 编辑:程序博客网 时间:2024/05/14 03:18
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
<context:annotation-config />
<context:component-scan base-package="com.soft" />
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://127.0.0.1:3306/spring1" />
<property name="username" value="root" />
<property name="password" value="zhangbin" />
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="mappingResources">
<list>
<value>com/soft/model/User.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<value>
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.show_sql=true
hibernate.hbm2ddl.auto=update
</value>
</property>
<property name="schemaUpdate">
<value>true</value>
</propert
y>
</bean>
<bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
<context:annotation-config />
<context:component-scan base-package="com.soft" />
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://127.0.0.1:3306/spring1" />
<property name="username" value="root" />
<property name="password" value="zhangbin" />
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="mappingResources">
<list>
<value>com/soft/model/User.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<value>
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.show_sql=true
hibernate.hbm2ddl.auto=update
</value>
</property>
<property name="schemaUpdate">
<value>true</value>
</propert
y>
</bean>
<bean id="hibernateTemplate" class="org.springframework.orm.hibernate3.HibernateTemplate">
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
</beans>
- applicationcontext.xml配置文件1
- applicationContext.xml的配置文件
- glxy配置文件 applicationcontext.xml
- applicationContext.xml的配置文件
- spring配置文件applicationContext.xml
- ApplicationContext.xml配置文件
- applicationContext.xml配置文件详解
- SpringIOC配置文件applicationContext.xml
- SpringAOP配置文件applicationContext.xml
- spring配置文件 applicationContext.xml
- Spring配置文件-applicationContext.xml
- applicationContext.xml配置文件讲解
- Spring的配置文件applicationContext.xml
- Spring的配置文件applicationContext.xml
- applicationContext.xml配置文件的读取
- applicationContext.xml 配置文件的认识
- Spring配置文件总结-applicationContext.xml
- spring applicationContext.xml 配置文件 详解
- android 技术等级
- 网站seo关键词排名该如何稳定
- 从B树、B+树、B*树谈到R 树
- LINUX IPC梳理
- 编写反转字符串的程序,要求优化速度、优化空间
- applicationcontext.xml配置文件1
- 淘宝开放平台回顾与前景展望
- ubuntu 10.04 安装itpp库方法
- Struts2标签大全
- DataGridView相关知识(整理得好多,好常用)
- workspace类分析
- linux下apache安装
- Lazy.Lib系列 - Socket监听与发送
- 桌面图标加载与存储