class Root{ static{ System.out.println("Root的静态初始化块"); } { System.out.println("Root的普通初始化块"); } public Root() { System.out.println("Root的无参数的构造器");...
分类:
编程语言 时间:
2015-10-16 10:00:39
阅读次数:
148
顶级父类 1 package hello; 2 3 public class Pc { 4 5 public Pc() 6 { 7 System.out.println("电脑构造方法"); 8 } 9 10 String pinPai;1...
分类:
其他好文 时间:
2015-10-16 06:14:26
阅读次数:
138
linux内存通过virtual memory 虚拟内存来管理整个内存,physical RAM物理内存和swap交换空间即为virtual memory总量。swap的使用场景swap主要有两个用处1、当系统需要比物理内存更多的内存空间的时候,内核会把内存里边用得比较少的内存页面swap out到...
分类:
系统相关 时间:
2015-10-15 23:30:53
阅读次数:
253
HashMap map = new HashMap();System.out.println(map.put('a', 'b')); //nullSystem.out.println(map.put('a', 'b')); //bSystem.out.println(map.put('a', 'c'...
分类:
编程语言 时间:
2015-10-15 22:00:28
阅读次数:
170
创建测试目录 mkdir?/tmp/create_key/ca
cd?/tmp/create_key/ 证书文件生成: 一. 服务器端 1. 生成服务器端 私钥(key文件): openssl?genrsa?-des3?-out?server.key?1024 运行时会提示输入密码,此密码用于...
分类:
系统相关 时间:
2015-10-15 20:44:24
阅读次数:
324
Request,Response,pageContext,session,Application,Out,Config,Page,Exception1.request对象
客户端的请求信息被封装在request对象中,通过它才能了解到客户的需求,然后做出响应。它是HttpServletRequest类的实例。
序号方法说明
1objectgetAttribute(Stringname)返回指..
分类:
Web程序 时间:
2015-10-15 18:52:58
阅读次数:
169
log4j.rootLogger=INFO,CONSOLElog4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.Target=System.out log4j.appender.CONSOLE.l...
分类:
其他好文 时间:
2015-10-15 17:57:47
阅读次数:
163
CSS3放大旋转实例:<!DOCTYPEhtml>
<html>
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=UTF-8"/>
<title>CSS3放大旋转</title>
<style>
.a{
transition:All0.4sease-in-out;
-webkit-transition:All0.4sease-..
分类:
Web程序 时间:
2015-10-15 16:18:49
阅读次数:
140
Struts2Utils.renderHtml("1", "encoding:GBK");PrintWriter out; JSONObject jo = new JSONObject(); response.setCharacterEncoding("gbk"); response.setC...
分类:
其他好文 时间:
2015-10-15 15:40:05
阅读次数:
124
重定向之前,代码如下 String?newname?=?URLEncoder.encode(awardType.getName(),?"utf-8");
System.out.println(newname);?//%E4%BA%8C%E5%90%88%E4%B8%80%E6%95%B0%E6%8D%AE%E7%BA%BF
String?location?=...
分类:
其他好文 时间:
2015-10-15 13:07:35
阅读次数:
179