Spring不但支持自己定义的@Autowired注解,还支持几个由JSR-250规范定义的注解,它们分别是@Resource、@PostConstruct以及@PreDestroy。
@Resource的作用相当于@Autowired,只不过@Autowired按byType自动注入,而@Reso...
分类:
编程语言 时间:
2014-05-23 07:02:28
阅读次数:
332
配置方案——Spring+hibernate访问数据库有以下几种方法:1>注入SessionFactory在spring配置文件中,对Dao注入sessionFactory,如下所示配置文件相关配置如下:
Dao编码如下:public class ManageEmpDaoImpl extend...
分类:
编程语言 时间:
2014-05-23 06:34:20
阅读次数:
387
1.首先是如何激发Session_End()方法因为这个方法只支持InProc(进程内的)类型的Session,所以我们将Web.config配置如下:2、Global.asax中的Application_Start定义全局对象:C#
code?1234567voidApplication_Star...
分类:
其他好文 时间:
2014-05-23 05:58:14
阅读次数:
414
14:18 2014/5/5IOC inversion of control 控制反转
将new对象的权力由调用者转移到spring容器(即xml文件),Struts2与Spring整合(scope="prototype")由spring来维护struts的生命周期,在启动web容器时spring容...
分类:
其他好文 时间:
2014-05-23 05:56:11
阅读次数:
284
原文地址:http://www.cnblogs.com/gaoweipeng/archive/2009/05/17/1458762.html“Asp.Net
配置”选项。设置和注释的完整列表在 machine.config.comments 中,该文件通常位于 "Windows"Microsoft....
分类:
Web程序 时间:
2014-05-23 05:15:51
阅读次数:
424
spring ioc aop 原理spring ioc aop
的原理spring的IoC容器是spring的核心,spring
AOP是spring框架的重要组成部分。在传统的程序设计中,当调用者需要被调用者的协助时,通常由调用者来创建被调用者的实例。但在spring里创建被调用者的工作不再由调用...
分类:
编程语言 时间:
2014-05-23 04:59:42
阅读次数:
371
Definition - What doesResource
Poolingmean?Resource pooling is an IT term used in cloud computing environments
to describe a situation in which provid...
分类:
其他好文 时间:
2014-05-23 04:59:01
阅读次数:
421
Webservice超时问题Winform客户端调用Webservice
120秒超时.对此问题,针对服务器与客户端分别作了超时设置为300S.1. 服务器端设置超时在 web.config 的 system.web
里添加如下配置项:记得要把 web.config 的 debug 模式关闭:2. ...
分类:
Web程序 时间:
2014-05-22 14:38:56
阅读次数:
456
看了一晚上的海贼王,感觉得学点东西才行。急急忙忙的搭了个Spring环境(spring官网:www.spring.io)eclipse4.3.2jdk
1.7.0_45spring 4.0.5下载spring所需的jar包这里我新建了一个web项目spring,将spring.jar和commons...
分类:
编程语言 时间:
2014-05-22 14:30:53
阅读次数:
368
分页使我们经常需要使用的功能,昨天在Spring MVC中实现了简单的分页操作和搜索分页,在此记录一下。使用的框架为(MyBatis+SpringMVC+Spring)。
首先我们需要一个分页的工具类:
1.分页
import java.io.Serializable;
/**
* 分页
*/
public class Page implements Seria...
分类:
编程语言 时间:
2014-05-21 13:38:03
阅读次数:
462