[学习笔记]基于注解的spring3.0.x MVC学习笔记(九)摘要:
本章节,仅为@SessionAttributes的功能扩展介绍介绍,结合@requestparam注解进行简易无数据库分页。
之前介绍了@SessionAttributes的功能,他可以保存指定的值在modelnap中,不会因...
分类:
编程语言 时间:
2014-06-29 07:52:02
阅读次数:
337
使用spring整合hibernate时,需要用到数据源,数据源使用apache的dbcp,使用dbcp时需要依赖pool的jar包,选择dbcp和pool时需要注意。
DBCP 2 compiles and runs under Java 7 only (JDBC 4.1)DBCP 1.4 compiles and runs under Java 6 only (JDBC 4)DBCP...
分类:
数据库 时间:
2014-06-20 13:19:33
阅读次数:
219
如何使用SpringMVC拦截器
自定义一个拦截器,要实现HandlerInterceptor接口:
public class MyInteceptor implements HandlerInterceptor {
略。。。
}
Spring MVC并没有总的拦截器,不能对所有的请求进行前后拦截。
Spring MVC的拦...
分类:
编程语言 时间:
2014-06-20 12:32:48
阅读次数:
246
1.MVC :Model-View-Control框架性质的C 层要完成的主要工作:封装web
请求为一个数据对象、调用业务逻辑层来处理数据对象、返回处理数据结果及相应的视图给用户。2. 简要概述springmvcSpring C 层框架的核心是
DispatcherServlet,它的作用是将请求...
分类:
编程语言 时间:
2014-06-07 09:51:12
阅读次数:
198
Spring 提供 Android
下HTTP请求方法http://projects.spring.io/spring-android/api
:http://docs.spring.io/spring-android/docs/1.0.2.BUILD-SNAPSHOT/api/postpostFo...
分类:
移动开发 时间:
2014-06-07 09:03:16
阅读次数:
209
在pom.xml添加plugin org.apache.maven.plugins
maven-compiler-plugin 2.5.1 1.6 1.6
分类:
其他好文 时间:
2014-06-07 07:58:34
阅读次数:
666
本文转载于HTTP://WWW.HANDOS.INFOintellij
IDEA是一款优秀的集成环境开发工具,他具备有很多特性很吸引人开发特性,比如天生就与Github,Maven,JUnit等主流工具集成,对于Java开发者非常实用。不过,国内的Intellij
Idea教程实在是太少了,甚至没有...
分类:
其他好文 时间:
2014-06-07 07:01:41
阅读次数:
271
@Transactional(noRollbackFor=RuntimeException.class)方法事务说明@Transactional(RollbackFor=Exception.class)@Transactional(readOnly=true)@Transactional(timeo...
分类:
编程语言 时间:
2014-06-07 06:57:02
阅读次数:
204
(系统:win8.1专业版)1.访问官网:从maven官网下载mavenhttp://maven.apache.org/download.cgi2.下载:点击红色圈住的link地址
进行下载(我这出现无法访问下载地址所以我选择不同的mirror进行下载)我选择的是 下图这个进行进行的下载3.解压并配...
分类:
其他好文 时间:
2014-06-07 06:56:17
阅读次数:
330
一、Spring MVC环境搭建:(Spring 2.5.6 + Hibernate
3.2.0) 1. jar包引入 Spring
2.5.6:spring.jar、spring-webmvc.jar、commons-logging.jar、cglib-nodep-2.1_3.jar
Hi...
分类:
编程语言 时间:
2014-06-05 13:24:00
阅读次数:
545