摘要: //当构造函数有多个参数时,可以使用constructor-arg标签的index属性,index属性的值从0开始。 阅读全文
posted @ 2016-06-14 16:20 markchuan 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 一.为实体类定义别名,简化sql映射xml文件中的引用 之前,我们在sql映射xml文件中的引用实体类时,需要写上实体类的全类名(包名+类名),如下: parameterType="me.gacl.domain.User"这里写的实体类User的全类名me.gacl.domain.User,每次都写 阅读全文
posted @ 2016-06-14 15:32 markchuan 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 一,线程的同步是为了防止多个线程访问一个数据对象时,对数据造成的破坏。 二、同步和锁定1、锁的原理Java中每个对象都有一个内置锁。当程序运行到非静态的synchronized同步方法上时,自动获得与正在执行代码类的当前实例(this实例)有关的锁。获得一个对象的锁也称为获取锁、锁定对象、在对象上锁 阅读全文
posted @ 2016-05-19 19:33 markchuan 阅读(512) 评论(0) 推荐(0) 编辑
摘要: Runtime.getRuntime()返回当前应用程序的Runtime对象,该对象 的exec()方法指示Java虚拟机创建一个子进程执行指定的可执行程序,并返回与该子进程对应的Process对象实例。通过Process可以控制 该子进程的执行或获取该子进程的信息。 概述 Runtime类封装了运 阅读全文
posted @ 2016-05-13 11:36 markchuan 阅读(500) 评论(0) 推荐(0) 编辑
摘要: 一、线程的状态 Java中线程中状态可分为五种:New(新建状态),Runnable(就绪状态),Running(运行状态),Blocked(阻塞状态),Dead(死亡状态)。 New:新建状态,当线程创建完成时为新建状态,即new Thread(...),还没有调用start方法时,线程处于新建状 阅读全文
posted @ 2016-05-05 16:41 markchuan 阅读(261) 评论(0) 推荐(0) 编辑
摘要: # Redis configuration file example      # Note on units: when memory size is needed, it is possible to specify   # it in the usual form of 1k 5GB 阅读全文
posted @ 2016-03-14 17:34 markchuan 阅读(361) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/rgky/p/5229971.html 阅读全文
posted @ 2016-03-01 10:55 markchuan 阅读(142) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/8hao/p/5230085.html 阅读全文
posted @ 2016-03-01 10:52 markchuan 阅读(82) 评论(0) 推荐(0) 编辑
摘要: Bootstrap就是对jQuery的一次再开发,所以jQuery脚本引用必须在bootstrap脚本之前。 链接:http://www.cnblogs.com/vvjiang/p/5189804.html 阅读全文
posted @ 2016-03-01 10:16 markchuan 阅读(106) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="UTF-8" ?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc 阅读全文
posted @ 2016-02-29 17:39 markchuan 阅读(253) 评论(0) 推荐(0) 编辑