摘要: Spring MVC 学习笔记 十五 what's new in spring mvc 3.11:mvc annotation-driven 新增标签以下为spring mvc 3.1中annotation-driven所支持的全部配置。Xml代码<mvc:annotation-drivenmessage-codes-resolver="beanref"validator=""conversion-service=""> <mvc:return-value-handlers><bean>&l 阅读全文
posted @ 2012-02-22 16:30 张良 阅读(782) 评论(0) 推荐(0) 编辑
摘要: 转自陈雄华《使用Spring 2.5基于注解驱动的Spring MVC》1、web.xml 启动spring容器和spring MVC<?xml version="1.0" encoding="UTF-8"?><web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun. 阅读全文
posted @ 2012-02-22 16:24 张良 阅读(320) 评论(0) 推荐(0) 编辑
摘要: Mastering Spring MVC 3中文版精通Spring MVC 3spring实例源代码请到https://src.springsource.org/svn/spring-samples/下载https://src.springsource.org/svn/spring-samples/mvc-showcase/已经转到https://github.com/SpringSource/spring-mvc-showcase。Spring MVC Showcase-------------------通过一些简单的示例,演示Spring MVC作为web框架的实力。这些例子简单易懂,让 阅读全文
posted @ 2012-02-22 16:13 张良 阅读(1273) 评论(0) 推荐(0) 编辑
摘要: <spring:bindpath="command.name">name:<inputtype="text"name="name"value="<c:outvalue="${status.value}"/>"/>(必须输入)<c:iftest="${status.error}"><fontcolor="#FF0000">错误:<c:forEachitems="${status.er 阅读全文
posted @ 2012-02-22 16:06 张良 阅读(1565) 评论(0) 推荐(0) 编辑
摘要: 【一】Spring应用Spring支持json格式的jarjackson-all-1.7.3http://jackson.codehaus.org/Spring MVC 3.x annotated controller的几点心得体会(最优化使用http://www.javaeye.com/topic/828513)一、callback回调template method(模板方法设计模式)-hibernateTemplate二、JPA2.0的配置src/META-INF/persistence.xmlwebContent/META-INF/context.xmlwebContent/WEB-IN 阅读全文
posted @ 2012-02-22 16:02 张良 阅读(2113) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/edwardlauxh/category/277224.html 阅读全文
posted @ 2012-02-22 08:25 张良 阅读(130) 评论(0) 推荐(0) 编辑
摘要: http://www.mkyong.com/spring-mvc/spring-mvc-file-upload-example/http://technopaper.blogspot.com/2009/03/multiple-file-upload-using-restful-web.htmlhttp://cxf.apache.org/docs/jax-rs-multiparts.htmlhttp://ltalbot.wordpress.com/2010/04/21/file-upload-using-rest-spring-mvc/http://www.mkyong.com/webservi 阅读全文
posted @ 2012-02-22 08:19 张良 阅读(342) 评论(0) 推荐(0) 编辑
摘要: http://maestric.com/doc/java/springhttp://static.springsource.org/docs/Spring-MVC-step-by-step/ 阅读全文
posted @ 2012-02-22 08:16 张良 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 初学spring mvc,自己学习做了hello world小例子,步骤如下:1:从springsource.org下载spring的包,从apache.org下载common-logging的包(供spring使用)。2: 备好IDE和web server,我用Eclipse(Helios Service Release 1)和Tomcat6.0.29。2.1 Eclipse:window->show->show view->servers打开servers窗口,右键new->server,找到Apache tomcat6并点击,然后指定本机tomcat安装目录后点f 阅读全文
posted @ 2012-02-22 08:12 张良 阅读(732) 评论(0) 推荐(1) 编辑
摘要: http://blog.springsource.com/2011/01/04/green-beans-getting-started-with-spring-mvc/http://blog.springsource.org/2010/01/25/ajax-simplifications-in-spring-3-0/ 阅读全文
posted @ 2012-02-22 07:54 张良 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 这篇文章将教你快速地上手使用Spring 框架. 如果你手上有一本《Spring in Action》, 那么你最好从第三部分"Spring 在 Web 层的应用--建立 Web 层"开始看, 否则那将是一场恶梦!首先, 我需要在你心里建立起 Spring MVC 的基本概念. 基于 Spring 的 Web 应用程序接收到 http://localhost:8080/hello.do(事实上请求路径是 /hello.do) 的请求后, Spring 将这个请求交给一个名为 helloController 的程序进行处理, helloController 再调用 一个名为 阅读全文
posted @ 2012-02-22 07:47 张良 阅读(336) 评论(0) 推荐(0) 编辑