privatevoidLogin_Click(objectsender,System.EventArgse){//作为唯一标识的Key,应该是唯一的,这可根据需要自己设定规则。//做为测试,这里用用户名和密码的组合来做标识;也不进行其它的错误检查。//生成KeystringsKey=UserName...
分类:
其他好文 时间:
2014-07-29 13:46:18
阅读次数:
190
我记得以前有人跟我说,“面试的时候要看spring的源码,要看ioc、aop的源码"那为什么要看这些开源框架的源码呢,其实很多人都是"应急式"的去读,就像读一篇文章一下,用最快的速度把文章从头到尾读一遍,那结果就是当你读完它,你也不清楚它讲了一个什么故事,想表达什么。
一个优秀的架构的源码我认为就好像一本名著一样,你的“文学”水平越高,你就越能读出作者设计的精妙之处。一篇源码在你不同水平的时候,能读出不同的东西,因此,我觉得优秀的框架的源码是经久不衰的,反复读多少次都不嫌多,直到你能设计出预...
分类:
数据库 时间:
2014-07-29 13:20:27
阅读次数:
408
servlet-context.xml
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframewor...
分类:
编程语言 时间:
2014-07-29 13:14:47
阅读次数:
310
apache-cxf-2.6.3 @Path("/xx")@Produces("application/json")@Consumes("application/json")public interface Iervice { @GET@Path("listAz/page...
分类:
编程语言 时间:
2014-07-29 12:44:06
阅读次数:
397
下面将介绍使用spring+mybatis的开发样例: 首先,笔者创建的是一个maven工程,在开发先先导入相关的依赖jar: pom.xml: junit junit 4.11 test ...
分类:
编程语言 时间:
2014-07-29 12:08:06
阅读次数:
333
转载地址:http://casheen.iteye.com/blog/2953481. 使用Spring注解来注入属性1.1. 使用注解以前我们是怎样注入属性的类的实现:Java代码publicclassUserManagerImplimplementsUserManager{privateUser...
分类:
编程语言 时间:
2014-07-29 12:02:06
阅读次数:
345
LeetCode: LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set....
分类:
其他好文 时间:
2014-07-29 11:43:36
阅读次数:
232
Spring MVC 3 深入总结转自:http://blog.csdn.net/sunitjy/article/details/6782431/-----------------------------------------------------------------------------...
分类:
编程语言 时间:
2014-07-29 11:26:26
阅读次数:
449
转自:http://www.cnblogs.com/cuizhf/p/3810652.html————————————————————————————————————————————————————————————spring mvc处理方法支持如下的返回方式:ModelAndView, Model...
分类:
编程语言 时间:
2014-07-29 11:11:36
阅读次数:
200