- 博客(5)
- 资源 (14)
- 收藏
- 关注
转载 spring与mybatis三种整合方法
本文主要介绍Spring与Mybatis三种常用整合方法,需要的整合架包是mybatis-spring.jar,可通过链接 http://code.google.com/p/mybatis/下载到。 1、采用数据映射器(MapperFactoryBean)的方式,不用写mybatis映射文件,采用注解方式提供相应的sql语句和输入参数。 (1)Spring配置文件:
2013-12-27 15:35:33 973
转载 javascript声明变量var和this的总结
很多人都觉得在javascript声明一个变量,加var和不加var没有什么区别,实际上是一个错误的观点,如果在函数外面,也就是说在window区域加不加var确实是一样,因为都会是全局变量的效果,而如果在函数内部,加var就是局部变量,不加是全局变量。 function test(){ var1 = 2; alert(var1); } test();
2013-12-24 16:07:44 1003
原创 java之适配器模式
适配器模式,属于结构型模式,其主要作用是将一个类的接口转换成客户希望的另外一个接口。适配器模式使得原本由于接口不兼容而不能一起工作的那些类可以一起工作。 The Adapter Pattern converts the interface of a class into another interface the clients expect. Adapater lets clas
2013-12-19 15:35:28 825
原创 (spring mvc)spring mvc 核心类与接口
先来了解一下,几个重要的接口与类。现在不知道他们是干什么的没关系,先混个脸熟,为以后认识他们打个基础。 DispatcherServlet -- 前置控制器 HandlerMapping接口 -- 处理请求的映射 HandlerMapping接口的实现类: SimpleUrlHandlerMapping 通过配置文件,把一个URL映射到Co
2013-12-18 15:58:54 4426
原创 Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds
错误 : Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor. 也就是我们限定了部署的时间导致的错误。 修改 E:\
2013-12-18 10:35:55 857
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人