上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页
摘要: 初学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) 编辑
摘要: @RequestMapping(params = "method=buildtemplate",method = RequestMethod.GET) public ModelAndView listFormField(String funcId, int fmtId){ ModelAndView mav = newModelAndView("/ws/listformfields"); List<SysFuncformapcolumn> fmcs = this.formManagerService.getColumnInfo(fmtId); 阅读全文
posted @ 2012-02-21 09:05 张良 阅读(798) 评论(0) 推荐(0) 编辑
摘要: Spring json-view 为Spring-MVC提供了对JavaScript Object Notation (json) 的支持,它深入地集成在Spring MVC模块里,能够适用于所有标准的控制器类。什么是Spring Json View?Spring json-view 为Spring-MVC提供了对JavaScript Object Notation (json) 的支持,它深入地集成在Spring MVC模块里,能够适用于所有标准的控制器类。在Web 2.0 Ajax 时代里常见的方式是客户(浏览器)和服务器的交互。在Java服务器端通常把Spring MVC看成是一个标准的 阅读全文
posted @ 2012-02-21 08:12 张良 阅读(4358) 评论(0) 推荐(0) 编辑
摘要: http://www.51xit.com/www/2011-02-23/5497.html 阅读全文
posted @ 2012-02-20 15:41 张良 阅读(214) 评论(0) 推荐(0) 编辑
摘要: /**上载文件,返回文件路径 /images/xxx/xx/xx.gif **/public static String uploadFile(HttpServletRequest request){MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;SimpleDateFormat dateformat = new SimpleDateFormat("yyyy/MM/dd/HH");/**构建图片保存的目录**/String logoPathDir = & 阅读全文
posted @ 2012-02-20 13:50 张良 阅读(766) 评论(0) 推荐(0) 编辑
摘要: 这篇不会大量的张贴代码,毕竟是自己对springMVC的学习,而不是对某一种东西作为详细解析的,好了话不多说了,近期学习springMVC换了不少东西,连日志工具也换了,采用了slf4j+logback进行日志管理,至于好处,请自行Google如何把主流的log4j+commons-loggin更换为slf4j+logback呢,由于spring里面采用了commons-logging日志监控,所以我们需要准备以下几个包:logback-classic.jar:改善了log4j并且实现了slf4j-log4j的代码logback-core.jar:logback的核心代码slf4j-api.j 阅读全文
posted @ 2012-02-20 13:49 张良 阅读(1197) 评论(0) 推荐(0) 编辑
摘要: 用惯了maven管理项目之后会发现自己懒惰了很多,所以决定放弃使用maven去学习spring3的mvc,采用传统的web project进行学习,好了闲话不说,首先我们需要知道spring mvc需要加什么包.使用到spring mvc的需要加入以下依赖包:org.springframework.aop-3.0.3.RELEASE.jar--------------Spring的切面编程org.springframework.asm-3.0.3.RELEASE.jar--------------Spring独立的asm程序org.springframework.beans-3.0.3.REL 阅读全文
posted @ 2012-02-20 13:48 张良 阅读(1497) 评论(0) 推荐(0) 编辑
摘要: 学习spring3.0.x(以下简称spring 3)已经一段日子了,新特性也接触不少,比较感兴趣还是spring mvc这一块3.0的mvc变化太大了,跟2.5基本上是两个样子,至于详细的区别可以参考以下文章领略Spring 3.x 时代的Spring MVCspring3 mvc变化比较大,但是还是有些2.5的影子的,首先来个2.5也可以使用的注解版本的mvc 入门例子.例子采用maven2管理,所以必须要安装m2eclipse插件或者使用maven2进行管理.本文基于eclipse3.5 Galileo-sr2Javaee 版本跟m2eclipse插件进行管理.m2eclipse在线安装 阅读全文
posted @ 2012-02-20 13:47 张良 阅读(482) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页