go4it

just do it

上一页 1 2 3 4 5 6 7 ··· 25 下一页

2009年7月22日

Spring视频学习(十二)整合Struts1.3

摘要: 1.使用myeclipse来对web添加struts1.3的支持 2.在web容器中实例化spring容器 web.xml如下:<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLS... 阅读全文

posted @ 2009-07-22 15:37 cxccbv 阅读(996) 评论(0) 推荐(0)

Spring视频学习(十一)整合Hibernate3.2

摘要: 1.整合的jar包 Spring2.5+Hibernate3.3+Struts1.3整合开发 hibernate核心安装包下的:hibernate3.jarlib\required\*.jarlib\optional\ehcache-1.2.3.jarhibernate 注解安装包下的lib\test\slf4j-log4j12.jarSpring安装包下的dist\spring.jardist... 阅读全文

posted @ 2009-07-22 10:33 cxccbv 阅读(585) 评论(0) 推荐(0)

2009年7月21日

Spring视频学习(十)使用XML配置事务

摘要: 1.XML配置<!-- 配置事务管理器 --> <bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="dataSource"/> </bean> &l... 阅读全文

posted @ 2009-07-21 21:13 cxccbv 阅读(453) 评论(0) 推荐(0)

Spring视频学习(九)使用Spring注解方式管理事务与传播行为详解

摘要: 一、事务传播属性 REQUIRED:业务方法需要在一个事务中运行。如果方法运行时,已经处在一个事务中,那么加入到该事务,否则为自己创建一个新的事务。 NOT_SUPPORTED:声明方法不需要事务。如果方法没有关联到一个事务,容器不会为它开启事务。如果方法在一个事务中被调用,该事务会被挂起,在方法调用结束后,原先的事务便会恢复执行。 REQUIRESNEW:属性表明不管是否存在事务,业务方法总会为... 阅读全文

posted @ 2009-07-21 15:39 cxccbv 阅读(695) 评论(0) 推荐(0)

Spring视频学习(八)整合JDBC

摘要: 1.配置命名空间<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="htt... 阅读全文

posted @ 2009-07-21 15:13 cxccbv 阅读(519) 评论(0) 推荐(0)

2009年7月20日

Spring视频学习(七)Spring的AOP

摘要: 一、总括 实现AOP的技术,主要分为两大类:一是采用动态代理技术,利用截取消息的方式,对该消息进行装饰,以取代原有对象行为的执行;二是采用静态织入的方式,引入特定的语法创建“方面”,从而使得编译器可以在编译期间织入有关“方面”的代码。然而殊途同归,实现AOP的技术特性却是相同的,分别为: http://wayfarer.cnblogs.com/articles/241024.html 1、join... 阅读全文

posted @ 2009-07-20 20:57 cxccbv 阅读(2656) 评论(0) 推荐(0)

Spring视频学习(六)JDK和cglib实现AOP

摘要: 一、JDK的AOP实现--基于接口的代理模式package cn.itcast.aop;import java.lang.reflect.InvocationHandler;import java.lang.reflect.Method;import java.lang.reflect.Proxy;import cn.itcast.service.impl.PersonServiceBean;pu... 阅读全文

posted @ 2009-07-20 13:43 cxccbv 阅读(337) 评论(0) 推荐(0)

Spring视频学习(五)组建扫描

摘要: 一、组建扫描配置 <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" xsi:schemaLoc... 阅读全文

posted @ 2009-07-20 13:33 cxccbv 阅读(355) 评论(0) 推荐(0)

Spring视频学习(四)Spring手工和自动注解

摘要: 一、依赖注入的形式: 二、其中的手工装配: 分:XML配置和注解配置。 其中XML配置有:<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-ins... 阅读全文

posted @ 2009-07-20 13:17 cxccbv 阅读(815) 评论(0) 推荐(0)

Spring视频学习(三)注入bean的属性

摘要: 注入基本类型,集合,类属性:<!-- ref方式注入属性 --><bean id="personDao" class="com.persia.PersonDaoBean"></bean><bean id="personService4" class="com.persia.PersonServiceBean"> <property name=... 阅读全文

posted @ 2009-07-20 13:06 cxccbv 阅读(340) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 25 下一页

导航