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

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 86 87 88 89 90 91 92 93 94 ··· 107 下一页

2012年4月24日 #

摘要: 这是我一些常用的开发工具,主要用来做web开发,绝大部分都是开源的,这里做出一个列表并给出评论和网址,以后逐步充实完善本人Java初学者,水平实在有限,如有错误之处,请来信告知,感激不尽JDK说明:Java软件开发工具箱网址:http://java.sun.com相关资源推荐:必备Eclipse说明:目前最为流行的跨平台JAVA集成开发环境,扩展性极高,很多插件可用完全用Java开发,无需安装,方便平台的迁移我目前用的Eclipse已经维护了两年多,其间重装系统无数次,Eclipse的个人配置和插件却无需重装,非常方便网址:http://www.eclipse.org相关资源推荐:吐血推荐,都 阅读全文
posted @ 2012-04-24 22:15 刺猬的温驯 阅读(510) 评论(0) 推荐(0)

摘要: SpringMVC与Hibernate整合配置Spring3.0Hibernate3.0web.xml<?xml version="1.0" encoding="UTF-8"?><web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://j 阅读全文
posted @ 2012-04-24 04:20 刺猬的温驯 阅读(1375) 评论(0) 推荐(0)

摘要: This tutorial explains how to use annotations with spring 3 MVC and hibernate 3 based application to make the development easier and faster than ever before.ArticleService.javaThis is the interface which declares methods which will be used in controller class.packagenet.roseindia.service;importjava. 阅读全文
posted @ 2012-04-24 04:09 刺猬的温驯 阅读(353) 评论(0) 推荐(0)

摘要: This tutorial explains how to use annotations with spring 3 MVC and hibernate 3 based application to make the development easier and faster than ever before.dispatcher-servlet.xml:<context:property-placeholder>element specifies the location where to find the properties file. In our case it is 阅读全文
posted @ 2012-04-24 04:07 刺猬的温驯 阅读(332) 评论(0) 推荐(0)

摘要: This tutorial explains how to use annotations with spring 3 MVC and hibernate 3 based application to make the development easier and faster than ever before.Spring 3 MVC and Hibernate 3 Example application using AnnotationsThis tutorial explains how to use annotations with spring 3 MVC and hibernate 阅读全文
posted @ 2012-04-24 04:05 刺猬的温驯 阅读(327) 评论(0) 推荐(0)

摘要: Java代码@InitBinderpublicvoidinitBinder(WebDataBinderbinder){SimpleDateFormatdateFormat=newSimpleDateFormat("yyyy-MM-dd");dateFormat.setLenient(false);binder.registerCustomEditor(Date.class,newCustomDateEditor(dateFormat,true));binder.registerCustomEditor(SystemInfo.class,newPropertyEditorSu 阅读全文
posted @ 2012-04-24 03:55 刺猬的温驯 阅读(5416) 评论(0) 推荐(0)

摘要: Customizing WebDataBinder initializationTo customize request parameter binding with PropertyEditors, etc. via Spring's WebDataBinder, you can either use @InitBinder-annotated methods within your controller or externalize your configuration by providing a custom WebBindingInitializer.Customizing 阅读全文
posted @ 2012-04-24 03:52 刺猬的温驯 阅读(6020) 评论(0) 推荐(0)

摘要: 弃用了struts2,用spring mvc框架做了几个项目,感觉都不错,而且使用了注解方式,可以省掉一大堆配置文件。本文主要介绍使用注解方式配置的spring mvc,之前写的spring3.0 mvc和rest小例子没有介绍到数据层的内容,现在这一篇补上。下面开始贴代码。文中用的框架版本:spring 3,hibernate 3,没有的,自己上网下。web.xml配置:<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2 阅读全文
posted @ 2012-04-24 03:13 刺猬的温驯 阅读(1032) 评论(2) 推荐(1)

2012年4月21日 #

摘要: Introduce Null Object(引入Null对象)你需要再三检查某对象是否为null。将null值替换为null对象。if(customer==null)plan=BillingPlan.basic(); elseplan=customer.getPlan();动机多态的最根本好处在于:你不必再向对象询问"你是什么类型"而后根据得到的答案调用对象的某个行为--你只管调用该行为就是了,其他的一切多态机制会为你安排妥当。当某个字段内容是null 时,多态可扮演另一个较不直观(亦较不为人所知)的用途。让我们先听听Ron Jeffries的故事。--Ron Jeffri 阅读全文
posted @ 2012-04-21 22:41 刺猬的温驯 阅读(640) 评论(0) 推荐(0)

摘要: 贝叶斯在在反垃圾邮件的产品中应用很多,也是当前最好的反垃圾邮件算法,著名的卡巴斯基病毒库代码就是采用贝叶斯过滤算法,在目前的邮件系统中采用贝叶斯过滤算法的唯有GCMAil邮件服务器。下面我就对贝叶斯反垃圾邮件技术简单的介绍一、 贝叶斯反垃圾邮件技术介绍 贝叶斯是基于概率的一种算法,是Thomas Bayes:一位伟大的数学大师所创建的,目前此种算法用于过滤垃圾邮件得到了广泛地好评。贝叶斯过滤器是基于“自我学习”的智能技术,能够使自己适应垃圾邮件制造者的新把戏,同时为合法电子邮件提供保护。在智能邮件过滤技术中,贝叶斯(Bayesian)过滤技术取得了较大的成功,被越来越多地应用在反垃圾邮件的产. 阅读全文
posted @ 2012-04-21 00:25 刺猬的温驯 阅读(2030) 评论(0) 推荐(0)

上一页 1 ··· 86 87 88 89 90 91 92 93 94 ··· 107 下一页