一个简单的基于SpringMvc的登录!!!...
分类:
编程语言 时间:
2014-08-29 18:22:25
阅读次数:
152
注释里有struts的上传文件和Springmvc有些不一样。读写都是一样的 修复删除缓存文件占用的问题package com.telling.cw.util.poi;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.ss.usermodel.DataFormatter;
import org.apache.poi.s...
分类:
编程语言 时间:
2014-08-29 18:21:18
阅读次数:
298
Spring框架提供了构造Web应用程序的全能MVC模块。Spring MVC分离了控制器、模型对象、分派器以及处理程序对象的角色,这种分离让它们更容易进行制定。是一个标准的MVC框架。那你猜一猜哪一部分应该是哪一部分?SpringMVC框架图SpringMVC接口解释DispatcherServl...
分类:
编程语言 时间:
2014-08-29 17:53:08
阅读次数:
287
基于前面文章的基础上。一、准备 需要的jar二、配置1、 spmvc-servlet.xmlXml代码fileUploadController2、Controller 使用两种方式: 一种是基于注解的,另一种传统的方式HttpServletRequest使用第二种方式时要注意:操作方法中对应的方法参...
分类:
编程语言 时间:
2014-08-29 17:35:08
阅读次数:
343
spring框架的大部分都支持国际化,就像springMVC一样。DispatcherServlet使你能够动态的通过客户端的本地语言进行配置。这是通过LocaleResolver完成的。 当一个请求到达,DispatcherServlet就会寻找LocaleResolver,如果找到就会试图通过它...
分类:
编程语言 时间:
2014-08-29 17:34:11
阅读次数:
215
加入支持的jar:
jackson-core-asl
jackson-mapper-asl
项目pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://mav...
分类:
编程语言 时间:
2014-08-28 18:12:27
阅读次数:
414
springmvc配置文件:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
...
分类:
编程语言 时间:
2014-08-28 18:07:45
阅读次数:
389
1. 打开hqhop-framework-parent项目下的pom.xml文件,添加sprin...
分类:
编程语言 时间:
2014-08-27 23:29:58
阅读次数:
483
文中用的框架版本:spring 3,hibernate 3,没有的,自己上网下。web.xml配置: 1 2 3 s3h3 4 5 contextConfigLocation 6 classpath:applicationCo...
分类:
编程语言 时间:
2014-08-27 18:38:38
阅读次数:
229
/**
?*?Created?with?IntelliJ?IDEA.
?*?User:?lijian
?*?Date:?14-7-11
?*?Time:?上午10:38
?*?description?:防止重复提交数据?????http://hi.baidu.com/uvmfawxtxzbknqe/item/3c87d422...
分类:
编程语言 时间:
2014-08-27 16:48:38
阅读次数:
156