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

博客园 首页 新随笔 联系 订阅 管理

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 刺猬的温驯 阅读(497) 评论(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 刺猬的温驯 阅读(1338) 评论(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 刺猬的温驯 阅读(336) 评论(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 刺猬的温驯 阅读(319) 评论(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 刺猬的温驯 阅读(312) 评论(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 刺猬的温驯 阅读(5400) 评论(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 刺猬的温驯 阅读(5998) 评论(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 刺猬的温驯 阅读(1010) 评论(2) 推荐(1) 编辑