摘要: 上篇介绍了基本的配置,这篇着重介绍与hibernate4整合。1.web.xml文件中加入spring-hibernate的配置。新的web.xml文件内容如下: contextConfigLocation classpath:spring.xml,classpath:spring-hibernate.xml org.springframework.web.context.ContextLoaderListener encodingFilter org.springframew... 阅读全文
posted @ 2013-12-19 14:22 庸蛹 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1.开发环境搭建,我用的是eclipse+tomcat7+jdk1.6,这部分不做介绍2.新建工程,我新建的是dynamic web project 命名为springmvc13.导入jar包,我用的是springframework3.1.1,目前官网spring不能下载,我是下载的源文件,用ant编译的。需要导入的jar包有:4.编写WEB-INF/web.xml如下: contextConfigLocation classpath:spring.xml org.springframework.web.context.... 阅读全文
posted @ 2013-12-19 13:32 庸蛹 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1.springmvc基本配置2.springmvc+hibernate4配置3.springmvc+hibernate4+freemarker配置4.springmvc+hibernate4+jsr-303 validation 配置 阅读全文
posted @ 2013-12-19 11:11 庸蛹 阅读(137) 评论(0) 推荐(0) 编辑