摘要: String name = "中文"; byte[] gbkbytes = name.getBytes("ISO-8859-1"); for (int i = 0; i < gbkbytes.length; i ++) { System.out.printf("0x%02X... 阅读全文
posted @ 2016-01-13 11:34 刘振明 阅读(2898) 评论(0) 推荐(0) 编辑
摘要: package com.atguigu.surveypark.util;import java.security.MessageDigest;/** * 数据 */public class DataUtil { /** * 使用md5算法进行加密 */... 阅读全文
posted @ 2015-05-12 21:27 刘振明 阅读(542) 评论(0) 推荐(0) 编辑
摘要: package com.atguigu.surveypark.dao.impl;import java.lang.reflect.ParameterizedType;import java.util.List;import javax.annotation.Resource;import org.h... 阅读全文
posted @ 2015-05-10 18:15 刘振明 阅读(660) 评论(0) 推荐(0) 编辑
摘要: 在实际项目中,有很多特定的需求。特别总结一些工具类进行备份。package jp.cn.itec.util.tools;public class StringUtils{ /** * 在字符串前面补零 * * @param param ... 阅读全文
posted @ 2015-04-25 10:29 刘振明 阅读(318) 评论(0) 推荐(0) 编辑
摘要: batch.sh内容:su - -c"使用管理员权限service tomcat6 stop;停止tomca6t服务mkdir /home/jnfwzFtp/bushubackup/`date +%Y%m%d`;以当天日期创建备份目录cp -r /var/lib/mysql/jishengwei /... 阅读全文
posted @ 2015-03-31 07:37 刘振明 阅读(11471) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-02-11 13:41 刘振明 阅读(41767) 评论(0) 推荐(1) 编辑
摘要: /\*{1,2}[\s\S]*?\*/ 阅读全文
posted @ 2015-02-10 16:37 刘振明 阅读(2155) 评论(0) 推荐(0) 编辑
摘要: eclipse运行web项目后,默认保存到 workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebappseclipse 修改配置服务器启动时间workspace\.metadata\.plugins\org.ecli... 阅读全文
posted @ 2015-02-10 09:18 刘振明 阅读(7509) 评论(0) 推荐(0) 编辑
摘要: http://86asm.iteye.com/blog/976019 阅读全文
posted @ 2015-02-03 13:52 刘振明 阅读(161) 评论(0) 推荐(0) 编辑
摘要: http://elf8848.iteye.com/blog/2008595 阅读全文
posted @ 2015-02-03 13:47 刘振明 阅读(207) 评论(0) 推荐(0) 编辑