加入支持的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
这是今天项目中遇到的一个让我纠结的问题,当时特郁闷,找了半天也没找到原因.最后一点一点的
测试提交数据才慢慢发现其中的端倪,最后也给遇到类似问题的朋友一点建议吧!
我的项目是运用SpringMVC作为控制层,然后是添加页面,页面需要提交一堆数据到服务器,当
写完数据提交的时候,并没有如我想象的那样跳入控制层,而跳入下面页面:
这个让我纠结了,以前都没遇到过,这个错误的原因看描述应该...
分类:
Web程序 时间:
2014-08-26 17:26:26
阅读次数:
195
MVC已经是现代Web开发中的一个很重要的部分,下面介绍一下SpringMVC+Spring3+Hibernate4的开发环境搭建
先大致看一下项目结构:...
分类:
编程语言 时间:
2014-08-26 17:22:57
阅读次数:
325
springMVC上传与下载首先,springmvc.xml必须配置:Java代码1. 2 WEB-INF/lib下必加入:commons-fileupload.jar与commons-io-1.4.jar二个文件3 表单属性为: enctype="multipart/form-data"工程项目图...
分类:
编程语言 时间:
2014-08-26 13:07:16
阅读次数:
317
The request sent by the client was syntactically incorrect. 这个问题是因为 SpringMvc controller 里面的方法参数和请求参数不匹配。请求参数在 Contoller 的方法参数对象中不存在则会报这个错误。如 : Cont.....
分类:
其他好文 时间:
2014-08-26 11:17:46
阅读次数:
162
由于没有使用maven所以直接看包结构吧!后续可能会带有maven的!
包有点多,但是不要在乎这些细节,多总比少好。下面看配置文件spring-common.xml(相当于applicationContext.xml)
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.or...
分类:
编程语言 时间:
2014-08-26 09:50:35
阅读次数:
333