随笔分类 -  Java 中级

中级知识记录
摘要:一、产生原因分析 数据库的编码格式和导入的.sql数据格式不一致导致 列如:我的数据库编码格式为gbk,而导入的数据表格式为utf8,则导入的数据表后其中中文显示为乱码 二、解决方案 1.编辑windows下MySQL的安装路径下(我的 为C:\Program Files\MySQL\MySQL S 阅读全文
posted @ 2018-08-26 23:06 fgh1101 阅读(4985) 评论(0) 推荐(0)
摘要:/** * Created by Administrator on 2017/6/2 0002. */import java.io.IOException;import java.math.RoundingMode;import java.security.MessageDigest;import 阅读全文
posted @ 2018-08-02 18:08 fgh1101 阅读(175) 评论(0) 推荐(0)
摘要:/** * Created by Administrator on 2017/12/2 0002. */import java.io.UnsupportedEncodingException;public class Base64 { /** * Chunk size per RFC 2045 se 阅读全文
posted @ 2018-08-02 18:05 fgh1101 阅读(721) 评论(0) 推荐(0)
摘要:/** * 加密解密类 */import javax.crypto.Cipher;import java.security.Key;import java.text.SimpleDateFormat;import java.util.Date;public class DesUtils { /** 阅读全文
posted @ 2018-08-02 17:58 fgh1101 阅读(1356) 评论(0) 推荐(0)