摘要: 1. 接口说明 Marker interface used by List implementations to indicate that they support fast (generally constant time) random access. The primary purpose 阅读全文
posted @ 2018-01-11 16:23 喜欢和习惯 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 1. 需要实现接口java.lang.Cloneable 2. 重写java.lang.Object的clone 3. clone访问权限扩大为public 4. 不实现(java.lang.Cloneable)接口,重写clone编译通过,调用会抛出CloneNotSupportedExcepti 阅读全文
posted @ 2017-11-21 10:01 喜欢和习惯 阅读(1132) 评论(0) 推荐(0) 编辑
摘要: 1. 普通的饱汉式、饿汉式 反射创建实例、调用方法(实例可访问的) 2. 并发也会影响 阅读全文
posted @ 2017-11-17 14:52 喜欢和习惯 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 1. 详情请看jvm(虚拟机)规范 阅读全文
posted @ 2017-11-17 10:18 喜欢和习惯 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 0. properties ####################################mysql########################################### db.mysql.driverClassName=com.mysql.jdbc.Driver db.m 阅读全文
posted @ 2017-11-17 09:12 喜欢和习惯 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 前提:父类:Parent.java 构造:默认构造方法(无参)、带参数构造方法(并存时,需要显示创建无参构造方法) 例如:public Parent(){}、public Parent(String param){} 子类:Children.java 构造:默认构造方法(无参)、带参数构造方法(并存 阅读全文
posted @ 2017-11-15 11:09 喜欢和习惯 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 1. xml结构(可查看mybatis-3-config.dtd) <!ELEMENT configuration (properties?, settings?, typeAliases?, typeHandlers?, objectFactory?, objectWrapperFactory?, 阅读全文
posted @ 2017-08-03 17:01 喜欢和习惯 阅读(2214) 评论(0) 推荐(0) 编辑
摘要: 一、windows 1. 下载tomcat 2. 进入bin目录,查看是否存在service.dat,如果没有自行创建 3. 打开cmd,进入tomcat>bin目录 说明:用法: service.bat install/remove [service_name] [/user username] 阅读全文
posted @ 2017-06-28 16:38 喜欢和习惯 阅读(762) 评论(1) 推荐(1) 编辑
摘要: 1. 所需jar包 涉及的poi (1)poi-3.14.jar (HSSF) 依赖:commons-logging-1.2.jar、log4j-1.2.17.jar、commons-codec.1.10.jar、junit.4.12.jar、hamcrest-core.1.3.jar (2)poi 阅读全文
posted @ 2017-06-02 09:39 喜欢和习惯 阅读(6752) 评论(0) 推荐(0) 编辑
摘要: 1. 常用命令 阅读全文
posted @ 2017-05-31 09:37 喜欢和习惯 阅读(354) 评论(0) 推荐(0) 编辑