摘要: /** * java文件: Test.java, package: com.chenyf.entity, 所在目录:F:/today/javadir/src/main/java/com/chenyf/entity/Test.java */ 阅读全文
posted @ 2019-01-09 18:32 chen_yf 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: import org.dom4j.Document;import org.dom4j.DocumentException;import org.dom4j.Element;import org.dom4j.io.SAXReader;import org.apache.commons.io.IOUti 阅读全文
posted @ 2018-06-01 15:40 chen_yf 阅读(5931) 评论(0) 推荐(0) 编辑
摘要: package com.beagledata.riskdecision.workbench;import com.alibaba.fastjson.JSONObject;import com.bigdata.bdtm.IModelPredict;import com.bigdata.bdtm.Mod 阅读全文
posted @ 2018-05-29 18:23 chen_yf 阅读(211) 评论(0) 推荐(0) 编辑
摘要: //将jar包安装到仓库 进入jar所在目录,执行以下命令: mvn install:install-file -DgroupId=com.beagledata -DartifactId=resource-package -Dversion=1.0 -Dpackaging=jar -Dfile=./ 阅读全文
posted @ 2018-05-28 11:40 chen_yf 阅读(90) 评论(0) 推荐(0) 编辑
摘要: //poi 代码生成Excel模板并下载 // 读取本地模板文件并下载 // POI 上传Excel service: 阅读全文
posted @ 2018-05-18 12:04 chen_yf 阅读(315) 评论(0) 推荐(0) 编辑
摘要: //检测用户名合法性public void checkUserName() { String regex = "([a-z]|[A-Z]|[\\u4e00-\\u9fa5])+"; Pattern p = Pattern.compile(regex); Matcher m = p.matcher(" 阅读全文
posted @ 2018-05-14 16:32 chen_yf 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 当大家进行这一操作的时候通常会遇到如下问题。 1: 想分割数据 例如: "123","Jack jona","Computer science" "234","Joen Dan", "Philosophy" //当遇到这种数据的时候可直接用 逗号进行分割。 2: 分割数据如下: "123", "ja 阅读全文
posted @ 2018-05-14 14:24 chen_yf 阅读(142) 评论(0) 推荐(0) 编辑
摘要: public class FileUtil { /** * 导出 * @param file Txt文件(路径+文件名),Txt文件不存在会自动创建 * @param dataList 数据 * @param heads 表头 */ public static boolean exportTxt(F 阅读全文
posted @ 2018-04-12 10:25 chen_yf 阅读(331) 评论(0) 推荐(0) 编辑
摘要: /** * 获得参数格式化字符串 * 参数名按字典排序,小写在后面 */private String getFormatParams(Map<String,String> params){ List<Map.Entry<String, String>> infoIds = new ArrayList 阅读全文
posted @ 2018-03-06 09:42 chen_yf 阅读(2397) 评论(0) 推荐(0) 编辑
摘要: /** *先使用HmacSHA256签名,再使用Base64编码,最后进行URL 编码 *signatureReqStr : 待加密data * secretKey : 密钥 */public static String getSignature(String signatureReqStr,Str 阅读全文
posted @ 2018-03-02 18:06 chen_yf 阅读(3808) 评论(0) 推荐(0) 编辑