this
基础 ORM 持久层框架。 Mybatis 主要分三个模块:API数据处理层基础层 流程图 Read More
posted @ 2015-07-28 19:31 湖南司马懿 Views(128) Comments(0) Diggs(0) Edit
原则 :子类可以替换掉父类的可变逻辑 ,但不可以替换父类的基本结构 。 Read More
posted @ 2015-01-08 18:36 湖南司马懿 Views(144) Comments(0) Diggs(0) Edit
/** * * { * "id": 2, * "title": "json title", * "config": { * "width": 34, * "height": 35 * }, * "data":... Read More
posted @ 2014-12-02 17:34 湖南司马懿 Views(238) Comments(0) Diggs(0) Edit
1 package concurrency.callable; 2 3 import java.util.concurrent.Callable; 4 5 /** 6 * 7 * Callable 与 Future 是为了适应 jdk1.6多并发产生的 8 * Callable 与 R... Read More
posted @ 2014-09-13 21:03 湖南司马懿 Views(152) Comments(0) Diggs(0) Edit
1.进程的概念进程就是在某种程度上相互隔离的、独立运行的程序。进程是资源分配的基本单位。2.进程与线程的关系不同的是线程与同一进程中的其它线程共享相同的进程上下文,包括内存。3.Synchronized 的意义 a.Mutex , 一次只有一个线程执行受保护的代码。 b.数据更改可见性,线程下数据的... Read More
posted @ 2014-08-14 22:03 湖南司马懿 Views(98) Comments(0) Diggs(0) Edit
Oracle索引(代价:Insert、Update/1.2倍表硬盘和内存空间保存索引)一、概述索引是用于加速数据存取数据对象,合理的使用索引可以大大降低I/O次数,从而提高数据访问性能。索引有很多种我们主要介绍常用的几种。二、创建索引1、单列索引单列索引是基于单个列所建立的索引。sql>create... Read More
posted @ 2014-08-06 18:59 湖南司马懿 Views(139) Comments(0) Diggs(0) Edit
1.加载 全局国际化资源文件加载全局国际化资源文件,其实就是配置常量 。不论是struts.properties ,还是struts.xml ,只需要配置常量 : struts.custom.il8n.resources .eg :(1) struts.properties struts.custom.il8n.resources = customResources(2) struts.xml Read More
posted @ 2013-10-23 00:03 湖南司马懿 Views(113) Comments(0) Diggs(0) Edit
1 Struts2.0 Action 访问 Servlet API ---->通过Struts2.0提供的ActionContext 类 . 访问Servlet 的 HttpServletRequest、HttpSession、 ServletContext .2Struts2.0 Action 直接访问 Servlet API 提供 ServletContextAware 、ServletRequestAware 、ServletResponseAware 三大接口3 使用 Struts 2.0 提供的ServletActionContext.java 工具类 访问 Servlet A Read More
posted @ 2013-10-21 00:19 湖南司马懿 Views(155) Comments(0) Diggs(0) Edit
一 Insert ------Add new row1. insert into departments(department_id,departments_name,manager_id,location_id) values(10086,'winit','jinyang',10000)2.Unconditional insert all insert ALL into sal_history values(EMPID,HIREDATE,SAL) into mgr_history values(EMPID,MGR,SAL) select employee_id Read More
posted @ 2013-04-02 16:48 湖南司马懿 Views(122) Comments(0) Diggs(0) Edit
ORACLE日期时间函数大全ORACLE日期时间函数大全 TO_DATE格式(以时间:2007-11-02 13:45:25为例) Year: yy two digits 两位年 显示值:07 yyy three digits 三位年 显示值:007 yyyy four digits 四位年 显示值:2007 Month: mm number 两位月 显示值:11 mon abbreviated 字符集表示 显示值:11月,若是英文版,显示nov month spelled out 字符集表示 显示值:11月,若是英文版,显示november Day: dd number 当月第几天 显示值: Read More
posted @ 2013-04-01 12:18 湖南司马懿 Views(365) Comments(0) Diggs(0) Edit