- 博客(14)
- 问答 (4)
- 收藏
- 关注
原创 java反射获取相关值
Object obj = Class.forName("xxxx.xxx.xx.XXX"); //获取函数 Method method = obj.getClass().getMethod("getSchool"); //获取静态field
2015-04-10 13:35:20 421
原创 java获取内部私有变量的值的方法
Field f = request.getClass().getDeclaredField("request");f.setAccessible(true); // grant access to (protected) fieldRequest realRequest = (Request)f.get(request);
2015-03-31 16:06:26 1579
转载 GENERATE AN OPENSSL CERTIFICATE REQUEST WITH SHA256 SIGNATURE
http://itigloo.com/security/generate-an-openssl-certificate-request-with-sha-256-signature/1. Generate a SSL Key FileFirstly you will need to generate a key file. The example below will gen
2015-01-29 16:30:48 820
原创 一个域名绑定多个ip,模拟浏览器的访问,自定切换到可访问ip
InetAddress[] inetAddress = InetAddress.getAllByName("blog.test.cn"); for(InetAddress inetAddress1: inetAddress){ { URL url = new URL("http://blog.test.cn");
2015-01-07 18:39:22 799
原创 timezone
default (Asia/Tokyo)AfricaAbidjanAccraAddis_AbabaAlgiersAsmaraBamakoBanguiBanjulBissauBlantyreBrazzavilleBujumburaCairoCasablancaCeutaConakryDakarDar_es_SalaamDjiboutiDoualaEl_AaiunFreetownGaboroneHar
2014-12-31 14:29:03 974
转载 cookie
The httpOnly functionality can be enabled for all webapps in conf/context.xml: ... 一、属性说明: 1 secure属性 当设置为true时,表示创建的 Cookie 会被以安全的形式向服务器传输,也就是只能在 HTTPS 连接中被浏览器传递到服务器端进行会话验证,如果是 HTTP 连接
2014-07-29 11:43:51 586
转载 FtpUtil
http://www.itjhwd.com/javautilhz2/package com.itjh.javaUtil;import java.io.File;import java.io.FileOutputStream;import java.io.IOException;import java.io.OutputStream;import java.util.ArrayLis
2014-06-27 09:13:38 736
转载 开启nginx状态监控
location /nginx_status {stub_status on;access_log off;allow 192.168.1.1;#设置为可访问该状态信息的ipdeny all;}然后,reload一下nginx的配置,如果假如了service中,只需要终端运行#service nginx reload通过http://www.py
2014-06-18 18:10:43 705
转载 10gen工程师谈MongoDB组合索引的优化
http://www.csdn.net/article/2012-11-09/2811690-optimizing-mongodb-compound
2014-05-02 09:54:14 547
原创 MongoDB MapReduce java使用
package jp.chakra.lotus.luence;import com.mongodb.*;import org.apache.commons.lang3.RandomStringUtils;/** * Created with IntelliJ IDEA. * Date: 5/1/14 * Time: 2:46 PM * To change this templat
2014-05-01 16:52:04 1337 1
原创 install phpstorm xdebug on mac
1,现在最新source代码http://xdebug.org/download.php2,编译cd /Users/micate/Downloads/wget http://xdebug.org/files/xdebug-2.2.1.tgztar zxvf xdebug-2.2.1.tgzcd xdebug-2.2.1/phpize./configure; makesu
2014-03-07 12:49:00 874
原创 代码测试
代码测试 boolean openMailRecord = false; if (mailMetadata.getMailBodyType() == MailBodyType.HTML_メール) { //開封 ActivityRecordPoint openMailConfigured = mailMet
2014-03-06 09:34:21 748
空空如也
【系统架构】安装ngixn的国外服务器proxy_pass到国内服务器的效率问题
2016-11-10
java代码的在线运行,对其内存限制,时间检测等问题[ga]
2015-01-12
shtml的后缀是不是多余了?
2015-01-06
对现在服务器技术而言,shtml 和html还有区别吗
2014-12-24
TA创建的收藏夹 TA关注的收藏夹
TA关注的人