随笔分类 -  Spring Study

上一页 1 2
Spring Study
ITCAST视频-Spring学习笔记(编码剖析Spring管理Bean的原理)
摘要:感谢ITCAST发布的免费视频。 模拟bean容器代码: package junit.test; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.dom4j.Document... 阅读全文
posted @ 2009-01-29 16:09 IT Person 阅读(619) 评论(2) 推荐(0)
ITCAST视频-Spring学习笔记(搭建与测试Spring的开发环境)
摘要:感谢ITCAST发布的免费视频。 spring version:2.5.6 Spring需要的jar 到http://www.springsource.org/download下载spring,然后进行解压缩,在解压缩目录中找到下面的jar文件,拷贝到类路径下 dist\spring.jar lib\jakarta-commons\commons-logging.jar 如果使用AOP还需... 阅读全文
posted @ 2009-01-29 15:24 IT Person 阅读(384) 评论(0) 推荐(0)
ITCAST视频-Spring学习笔记(全面阐释Spring及其各项功能)
摘要:感谢ITCAST发布的免费视频。 Spring是一个IOC和AOP的容器 控制翻转应用本身不负责依赖对象的创建和维护,依赖对象的创建和维护是油外部容器负责的,控制权有应用转移到外部容器,控制权的转移就是所谓反转。 所谓依赖注入是指:在运行期,由外部容器动态地将依赖对象注入到组件中。 使用Spring好处: 降低组件之间的耦合度,实现软件各层之间的解耦(接口注入,可以更换注入的实现类)。 ... 阅读全文
posted @ 2009-01-27 23:21 IT Person 阅读(351) 评论(0) 推荐(0)
Spring Study[13]
摘要:Managing Hibernate resources: As we said, you will keep a single instance of a SessionFactory throughout the life of your application. The preferred way to do this is to wire a DataSource to the Loca... 阅读全文
posted @ 2007-11-09 22:35 IT Person 阅读(268) 评论(0) 推荐(0)
Spring Study[12]
摘要:There is also a subinterface you can implement that is useful for retrieving multiple objects through a query. Suppose we want a method that retrieves all of our Person objects. To do this we would im... 阅读全文
posted @ 2007-11-09 22:33 IT Person 阅读(263) 评论(0) 推荐(0)
Spring Study[11]
摘要:The complement to PreparedStatementCreator is PreparedStatementSetter. receive a PreparedStatement and are responsible for setting any of the parameters. Since many updates consist of creating a Prepa... 阅读全文
posted @ 2007-11-09 22:31 IT Person 阅读(258) 评论(0) 推荐(0)
Spring Study[10]
摘要:the service objects are accessing the DAOs through interfaces.This has a couple of advantages. First, it makes your service objects easily testable since they are not coupled to a specific data access... 阅读全文
posted @ 2007-11-09 22:28 IT Person 阅读(251) 评论(0) 推荐(0)
Spring Study[9]
摘要:Using dynamic pointcuts: Spring provides one built-in dynamic pointcut: ControlFlowPointcut. javax.servlet.http.HttpServlet MyService servletA... 阅读全文
posted @ 2007-11-04 18:18 IT Person 阅读(195) 评论(0) 推荐(0)
Spring Study[8]
摘要:Regular expression pointcuts: when you are using the RegexpMethodPointcut, you need to include the Jakarta Commons ORO 3 library in your application. .*get.+By.+ com.springinaction.chapter... 阅读全文
posted @ 2007-11-04 15:05 IT Person 阅读(153) 评论(0) 推荐(0)
Spring Study[7]
摘要:Around advice: MethodInterceptor provides the ability to do both in one advice object. the MethodInterceptor implementation controls whether the target method is actually invoked. Throws advice: Throw... 阅读全文
posted @ 2007-11-04 15:04 IT Person 阅读(253) 评论(0) 推荐(0)
Spring Study[6]
摘要:Aspect: An aspect is the cross-cutting functionality you are implementing.The most common (albeit simple) example of an aspect is logging. Joinpoint: A joinpoint is a point in the execution of the app... 阅读全文
posted @ 2007-11-04 15:02 IT Person 阅读(259) 评论(0) 推荐(0)
Spring Study[5]
摘要:Externalizing properties in Spring is easy if you are using an ApplicationContext as your Spring container. You use Spring’s PropertyPlaceholderConfigurer to tell Spring to load certain configuration ... 阅读全文
posted @ 2007-10-29 21:18 IT Person 阅读(339) 评论(0) 推荐(0)
Spring Study[4]
摘要:Alternatively, you can have Spring wire them automatically by setting the autowire property on each that you want autowired: There are four types of autowiring: ■ byName—Attempts to find a bean in t... 阅读全文
posted @ 2007-10-28 14:18 IT Person 阅读(319) 评论(0) 推荐(0)
Spring Study[3]
摘要:Setting null values: certain properties to be set just once—when the bean is created.this is inject by constructor. there are two ways you can deal with ambiguities among constructor arguments: by ind... 阅读全文
posted @ 2007-10-27 20:48 IT Person 阅读(228) 评论(0) 推荐(0)
spring study[2]
摘要:Bean factories (defined by the org.springframework.beans.factory.BeanFactory interface) are the simplest of containers, providing basic support for dependency injection. Application contexts (defined ... 阅读全文
posted @ 2007-10-27 18:33 IT Person 阅读(270) 评论(0) 推荐(0)
spring study[1]
摘要:BeanFactory belongs to Core Module. Context Module extends this and add some another function,including internationalization (I18N) messages, application life cycle events, and validation.it supplies ... 阅读全文
posted @ 2007-10-27 18:31 IT Person 阅读(245) 评论(0) 推荐(0)

上一页 1 2