- 浏览: 174403 次
- 性别:
- 来自: 厦门
文章分类
- 全部博客 (186)
- Ant (11)
- Axis2 (15)
- Car (9)
- Eclipse (1)
- Java (19)
- Java-EM (4)
- Javascript (11)
- Jsp (1)
- Hibernate (9)
- Mysql (1)
- Ms-Dos (5)
- Music (0)
- Oracle (3)
- Postgresql (0)
- Photoshop (1)
- Spring (17)
- Struts (8)
- Selenium (5)
- Ubuntu (13)
- News (17)
- Others (7)
- SSH (11)
- 算法 (5)
- FreeMarker (4)
- Tomcat (2)
- Linux (5)
最新评论
<?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:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"> <tx:annotation-driven transaction-manager="transactionManager" /> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"> <property name="driverClassName" value="org.postgresql.Driver" /> <property name="url" value="jdbc:postgresql://localhost:5432/bank" /> <property name="username" value="goodhope" /> <property name="password" value="goodhope" /> </bean> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource"> <ref bean="dataSource" /> </property> <property name="configLocation"> <value> classpath:hibernate.cfg.xml </value> </property> </bean> <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory" /> </bean> </beans>
发表评论
-
spring-hibernate
2008-10-24 21:04 659原则上尽量要使用spring下载包里lib目录里的jar文件 ... -
在项目中为 Spring Framework 配置 Log4j
2008-10-28 19:15 737创建一个基于 Spring Framework 的项目之后,在 ... -
spring2.0以后声明式事务管理
2008-10-29 17:35 785基于注解式的 <?xml version="1 ... -
SpringBeanFactory
2008-10-29 17:38 776SpringBeanFactory import org.sp ... -
用 Hibernate 和 Spring 开发事务持久层(转贴)
2008-10-30 20:20 637用 Hibernate 和 Spring 开发 ... -
Spring配置事务在DAO层和业务逻辑层
2008-10-31 10:39 795转自:http://www.blogjava.n ... -
基于 MVC 三层架构,Spring 配置文件(08.10.31号)
2008-10-31 11:28 867<?xml version="1.0" ... -
简化Spring(1)--配置文件
2008-10-31 13:53 597转自:http://www.blogjava.net/calv ... -
简化Spring(2)--Model层
2008-10-31 13:54 570简化Spring(2)--Model层 作者:江南白 ... -
简化Spring(3)--Controller层
2008-10-31 13:55 484简化Spring(3)--Controller层 ... -
简化Spring(4)--View层
2008-10-31 13:55 500简化Spring(4)--View层 作者:江南白衣 ... -
Spring--简单使用quartz实现定时作业
2008-10-31 14:14 657Spring--简单使用quartz实现定时作业 ... -
Pathway from ACEGI to Spring Security 2.0
2008-11-20 08:42 696Pathway from ACEGI to Spring Se ... -
Pathway from ACEGI to Spring Security 2.0(2)
2008-11-20 08:55 799The main part of this piece of ... -
Pathway from ACEGI to Spring Security 2.0(3)
2008-11-20 08:56 851OK, so now we have setup the d ... -
spring常见错误之一
2008-12-13 09:32 661Error creating bean with name ' ...
相关推荐
applicationContext.xml 详细配置
struts.xml和applicationContext.xml、web.xml的配置
applicationContext.xml详解
在SSH的applicationContext.xml 中如何配制配制事务
Spring applicationContext.xml常见部分属性的使用备注
详解Spring的applicationContext.xml文件代码:
包含applicationContext.xml、db.properties、log4j.properties、spring-mvc.xml文件,方便搭建,省去写代码。。
SSH框架applicationContext.xml头部文件
spring4的“所有jar包”+applicationContext.xml+web.xml====全套
Spring Boot技术知识点:如何读取不同路径里的applicationContext.xml配置文件4
这是一些配置文件,可以作为参考,个人感觉很方便的学习方法
spring定时任务必须的包和spring配置说明