君子博学而日参省乎己 则知明而行无过矣

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 89 90 91 92 93 94 95 96 97 ··· 106 下一页

2012年3月16日 #

摘要: 线性表,链表,哈希表是常用的数据结构,在进行Java开发时,JDK已经为我们提供了一系列相应的类来实现基本的数据结构。这些类均在java.util包中。本文试图通过简单的描述,向读者阐述各个类的作用以及如何正确使用这些类。Collection├List│├LinkedList│├ArrayList│└Vector│ └Stack└SetMap├Hashtable├HashMap└WeakHashMapCollection接口 Collection是最基本的集合接口,一个Collection代表一组Object,即Collection的元素(Elements)。一些 Collection允许相. 阅读全文
posted @ 2012-03-16 05:00 刺猬的温驯 阅读(1258) 评论(0) 推荐(0) 编辑

2012年3月14日 #

摘要: 一、前言:大家好,Spring3 MVC是非常优秀的MVC框架,由其是在3.0版本发布后,现在有越来越多的团队选择了Spring3 MVC了。Spring3 MVC结构简单,应了那句话简单就是美,而且他强大不失灵活,性能也很优秀。官方的下载网址是:http://www.springsource.org/download (本文使用是的Spring 3.0.5版本)Struts2也是比较优秀的MVC构架,优点非常多比如良好的结构。但这里想说的是缺点,Struts2由于采用了值栈、OGNL表达式、struts2标签库等,会导致应用的性能下降。Struts2的多层拦截器、多实例action性能都很好 阅读全文
posted @ 2012-03-14 02:03 刺猬的温驯 阅读(566) 评论(0) 推荐(0) 编辑

2012年3月13日 #

摘要: 简介:JSR 303 – Bean Validation 是一个数据验证的规范,2009 年 11 月确定最终方案。2009 年 12 月 Java EE 6 发布,Bean Validation 作为一个重要特性被包含其中。本文将对 Bean Validation 的主要功能进行介绍,并通过一些示例来演示如何在 Java 开发过程正确的使用 Bean Validation。关于 Bean Validation在任何时候,当你要处理一个应用程序的业务逻辑,数据校验是你必须要考虑和面对的事情。应用程序必须通过某种手段来确保输入进来的数据从语义上来讲是正确的。在通常的情况下,应用程序是分层的,不同 阅读全文
posted @ 2012-03-13 21:02 刺猬的温驯 阅读(763) 评论(0) 推荐(0) 编辑

摘要: kaptcha 是一个非常实用的验证码生成工具。有了它,你可以生成各种样式的验证码,因为它是可配置的。kaptcha工作的原理是调用 com.google.code.kaptcha.servlet.KaptchaServlet,生成一个图片。同时将生成的验证码字符串放到 HttpSession中。使用kaptcha可以方便的配置:验证码的字体验证码字体的大小验证码字体的字体颜色验证码内容的范围(数字,字母,中文汉字!)验证码图片的大小,边框,边框粗细,边框颜色验证码的干扰线(可以自己继承com.google.code.kaptcha.NoiseProducer写一个自定义的干扰线)验证码的样式 阅读全文
posted @ 2012-03-13 01:26 刺猬的温驯 阅读(7427) 评论(0) 推荐(1) 编辑

摘要: 关于Spring Web Services框架Spring web services(以下简称:Spring WS)框架是springframework东家SpringSource公司旗下的一个子项目。目前的版本是1.5M1,最新版本可以从spirngframework网站下载,项目地址是:http://www.springframework.org/node/567由于怀着对spring框架的热爱,于是打算学习下这个框架。Spring Web Services框架的特点Spring框架的支持,你可以重用Spring的所有特性。Spring WS使用Contract First(自顶向下)的设 阅读全文
posted @ 2012-03-13 01:22 刺猬的温驯 阅读(599) 评论(0) 推荐(0) 编辑

摘要: In this tutorial we are create RegistrationForm in Spring 3.0. In this tutorial we are using annotation based Controller and another related files.Spring 3 MVC Registration Form ExampleIn this tutorial we are create RegistrationForm in Spring 3.0. In this tutorial we are using annotation based Contr 阅读全文
posted @ 2012-03-13 00:50 刺猬的温驯 阅读(1125) 评论(0) 推荐(0) 编辑

摘要: i am having trouble with binding my data from a form : I have two class@Entity @Table(name = "ROLES") public class Role implements GenericDomain { private Long id; private String code; private String name; private Set<Privilege> privileges = new HashSet<Privilege>(0); public Ro 阅读全文
posted @ 2012-03-13 00:45 刺猬的温驯 阅读(390) 评论(0) 推荐(0) 编辑

摘要: In this tutorial we are going to create annotation based file upload example using Spring 3.0 MVC module.Spring 3 MVC File UploadCreating file upload example using Spring 3 MVCLearn how to create file upload application using Spring MVC module of the Spring 3 framework.In this tutorial we are going 阅读全文
posted @ 2012-03-13 00:16 刺猬的温驯 阅读(3891) 评论(0) 推荐(0) 编辑

2012年3月12日 #

摘要: @ResponseBody & @RequestBody作用?@RequestBody 将 HTTP 请求正文插入方法中,使用适合的HttpMessageConverter将请求体写入某个对象。@ResponseBody 将内容或对象作为 HTTP 响应正文返回,使用@ResponseBody将会跳过视图处理部分,而是调用适合HttpMessageConverter,将返回值写入输出流。HttpMessageConverter接口<mvc:annotation-driven />开启了之后它给AnnotationMethodHandlerAdapter初始化7个转换器,可以 阅读全文
posted @ 2012-03-12 04:07 刺猬的温驯 阅读(2467) 评论(0) 推荐(0) 编辑

摘要: 以下内容是经过自己整理资料、官方文档所得:web.xml配置:<servlet> <servlet-name>dispatcher</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <description>加载/WEB-INF/spring-mvc/目录下的所有XML作为Spring MVC的配置文件</description> & 阅读全文
posted @ 2012-03-12 01:04 刺猬的温驯 阅读(449) 评论(0) 推荐(0) 编辑

上一页 1 ··· 89 90 91 92 93 94 95 96 97 ··· 106 下一页