- 博客(9)
- 收藏
- 关注
原创 Property文件读取
public class PropertyUtil { private static final Logger logger = LoggerFactory.getLogger(PropertyUtil.class); private static Properties props; static { loadProps(); }
2017-12-29 08:13:41
661
原创 公钥密钥加密、MD5
public class RSAUtil { /** 指定加密算法为DESede */ private static String ALGORITHM = "RSA"; /** 指定key的大小 */ private static int KEYSIZE = 1024; /** 指定公钥存放文件 */ private static String PUBLIC_KEY_FILE
2017-12-29 08:06:58
2094
原创 spring 基础配置
1、mybatis层 PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> Entity{createTime} --> -->
2017-12-29 08:00:41
451
原创 httpclient 调用第三方接口
public class WebApiUtil { private static Logger logger = LoggerFactory.getLogger(WebApiUtil.class); public static boolean httpPost(String userID, String sessionID, String deviceID, String packag
2017-12-29 07:58:34
507
原创 kafka
public class KafKaProducer extends Thread { private String topic; private String message; public KafKaProducer(String topic, String message) { super(); this.topic = topic; this.message =
2017-12-29 07:50:33
229
原创 数据库多数据源配置
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springf
2017-11-08 07:56:13
372
原创 邮件发送
/** * 邮件发送的身份验证器 * @author zm * @date * @version * @parameter * @since * @return */ public class MyAuthenticator extends Authenticator{ private String userName=null; p
2017-07-27 07:32:31
352
原创 POI对Excel的读写
/** * excel 读写工具类 * @author zm * @date 2017-7-26 * @version * @parameter * @since * @return */ public class POIUtil { private static Logger logger = Logger.getLogger(POIUt
2017-07-27 07:28:58
322
原创 分页查询案例
/** * 封装条件 * * @author zm * */ public class Condition { // 菜的类别作为条件 private int foodTypeId; // 才的名称作为条件 private String foodName; public int getFoodTypeId() { return foodT
2017-07-26 20:25:43
556
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人