- 博客(5)
- 资源 (18)
- 收藏
- 关注
转载 spring MVC 文件上传的MaxUploadSizeExceededException异常处理
spring MVC上传文件使用了common.fileupload组件,该组件上传文件的时候有个文件大小的限制,在超出这个限制之后.会抛出MaxUploadSizeExceededException异常.该异常是spring检查上传文件的信息的时候抛出的,此时还没进入Controller内解析文件的方法中.网上查到的方法是:1 使用org.springframework.
2012-01-19 16:31:21 14289 1
原创 spring 3.1 Validator 校验机制解析
最近在学习Spring3.1,基于注解的MVC, 使用过程中发现,开始的时候很不喜欢那个JSR 303 推荐的校验机制,原因很简单就是要记很多Annotation, 每个校验类型一个annotation,而且也不喜欢那个正则式的校验方式,还是喜欢独立的一个校验方法的方式,像以前的struts里的那个对form的校验,或者spring里的校验接口那种的。但是找了老半天,发现spring3.1没有提供
2012-01-19 14:09:41 26194 9
原创 指定spring配置文件的位置
本文使用的是spring3.1.0, 主要讲解spring的配置文件默认位置和指定spring配置文件的位置。1、默认位置A) 默认mvc配置文件在web.xml文件中配置: annomvc org.springframework.web.servlet.DispatcherServlet annomvc /指定Spring来处理请求的Servle
2012-01-15 09:21:08 13542 1
原创 spring3.1集成struts2.1.6配置文件集成
【引言】 本来spring就有mvc,可是大家用struts习惯了,最近用spring来管理后台dao,struts2来响应请求。面对一大堆的配置文件,classes路径下一堆, /WEB-INF/下一堆,很分散,看着也不爽。于是就想把他们放在一起。1、配置文件及位置分布:log4j.properties src目录下spring相关配置文件: src/config/sp
2012-01-13 17:51:16 1635
原创 Spring框架研究之MultiActionController
最近一段时间Spring MVC吵得挺火的,项目中也有用到,于是趁这个机会研究了下MultiActionController.MultiActionController的用途:在使用Spring提供的控制器时,AbstractController和SimpleFormController是应用得最多的。AbstractController是最基本的Controller,可以给予
2012-01-11 14:20:44 2772
HelloWorld WebService Server
2012-11-01
Extjs exporter
2012-08-17
FlashPaper2.2 绿色版
2012-07-10
Android应用开发详解.pdf
2012-05-28
深入浅出EXTJS第2版.pdf part3(共三部分)
2011-12-08
深入浅出EXTJS第2版.pdf part1(共三部分)
2011-12-08
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人