hibernate 缓存配置

摘要: 添加ehcache等jar包 hiberante.cfg.xml文件里面配置 true true org.hibernate.cache.ehcache.EhCacheRegionFactory ehcache.xml 阅读全文
posted @ 2015-01-05 17:07 renshaoping 阅读(98) 评论(0) 推荐(0)

Hibernate中文乱码

摘要: utf8 阅读全文
posted @ 2014-12-26 17:53 renshaoping 阅读(111) 评论(0) 推荐(0)

HttpPost 中文编码问题 EntityBuilder

摘要: EntityBuilder.setText()和系统编码一致,中文会出现乱码。使用EntityBuilder.setbinary()解决。 阅读全文
posted @ 2014-12-25 11:03 renshaoping 阅读(801) 评论(0) 推荐(0)

apache 配置tomcat代理

摘要: http代理LoadModule proxy_module modules/mod_proxy.soLoadModule proxy_http_module modules/mod_proxy_http.soLoadModule proxy_ajp_module modules/mod_proxy_... 阅读全文
posted @ 2014-12-16 15:14 renshaoping 阅读(633) 评论(0) 推荐(0)

mysql查询表的当前ID 自动增加id后

摘要: mysql函数语句 “show table status”,可以获取当前数据库里的所有表的属性等信息其中mysql获取指定表当前自增id值(Auto_increment)方法有两种,1、show table status like ‘TableName’2、show table status whe... 阅读全文
posted @ 2014-12-06 10:34 renshaoping 阅读(486) 评论(0) 推荐(0)

curl 分析tcp与ssl握手时间命令

摘要: curl -kso /dev/null -w "tcp:%{time_connect}, ssldone:%{time_appconnect}\n" https://www.google.com 阅读全文
posted @ 2014-11-25 15:29 renshaoping 阅读(1222) 评论(0) 推荐(0)

java https client信任所有证书

摘要: package httpsclient;import java.io.IOException;import java.util.List;import java.util.ArrayList;import org.apache.http.HttpEntity;import org.apache.ht... 阅读全文
posted @ 2014-11-22 12:06 renshaoping 阅读(2005) 评论(0) 推荐(0)

java jaxb att自动生成

摘要: package code;import java.io.FileReader;import java.io.FileWriter;import java.io.LineNumberReader;import java.util.ArrayList;import java.util.List;impo... 阅读全文
posted @ 2014-11-21 18:13 renshaoping 阅读(235) 评论(0) 推荐(0)

java jaxb代码自动生成

摘要: package code;import java.io.FileReader;import java.io.FileWriter;import java.io.LineNumberReader;import java.util.ArrayList;import java.util.List;impo... 阅读全文
posted @ 2014-11-21 18:12 renshaoping 阅读(623) 评论(0) 推荐(0)

shell命令

摘要: netstat -ntp |grep 3306 |cut -c49-59 |sort |uniq 查看与mysql连接主机 阅读全文
posted @ 2014-11-20 11:15 renshaoping 阅读(141) 评论(0) 推荐(0)