spring
zhb1208
这个作者很懒,什么都没留下…
展开
-
spring 配置init方法
1.spring配置init的方法 java文件:[code="java"]package com.jason.spring.init;public class LifeCycleBean{ public void init() { System.out.println( "LifeCycleBean.init..." ); }}[/code...原创 2010-08-03 15:28:51 · 918 阅读 · 0 评论 -
spring的initializingBean实例
1.bean文件 需要实现InitializingBean接口。[code="java"]package com.jason.spring.initializingbean;import org.springframework.beans.factory.InitializingBean;public class LifeCycleBean implements I...原创 2010-08-03 15:31:22 · 129 阅读 · 0 评论 -
spring bean scope
4.4 Bean scopesWhen you create a bean definition what you are actually creating is a recipe for creating actual instances of the class defined by that bean definition. The idea that a...原创 2011-12-16 17:26:08 · 146 阅读 · 0 评论 -
详解Spring中bean的scope
如何使用spring的作用域:<bean id="role" class="spring.chapter2.maryGame.Role" scope="singleton"/>这里的scope就是用来配置spring bean的作用域,它标识bean的作用域。在spring2.0之前bean只有2种作用域即:singleton(单例)、non-sing...原创 2011-12-23 10:26:44 · 86 阅读 · 0 评论 -
Spring Framework
架构图片[img]http://dl.iteye.com/upload/attachment/602179/f89523de-72ae-35cd-802e-a95cb53265ec.gif[/img]原创 2011-12-08 10:21:02 · 82 阅读 · 0 评论 -
Spring 3.0 文档
Spring 3.0 文档原创 2012-10-23 11:09:55 · 78 阅读 · 0 评论 -
spring mvc 前台到后台时间类型处理
Controller类里面: @InitBinder protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { // DateFormat format = new SimpleD...原创 2014-12-23 16:10:54 · 288 阅读 · 0 评论