java
文章平均质量分 57
阿尔梅勒
技术的道路上,永无尽头!
展开
-
Mybatis中4种批量插入测试
Mybatis几种批量插入方式及效率测试原创 2022-03-22 15:19:44 · 1238 阅读 · 0 评论 -
java判断是否为汉字
/** * 判断是否为汉字 * @param str 字 * @return */ public static boolean isChinese(String str) { Pattern p_str = Pattern.compile("[\\u4e00-\\u9fa5]+"); Matcher m = p_转载 2017-11-15 14:09:31 · 3673 阅读 · 0 评论 -
java将网络图片转成Base64码
/** * 将网络图片转成Base64码 * @param imgURL 图片地址。 * 例如:http://***.com/1107_563x72_20171025191524034.jpg * @return */ public static String imgBase64(String imgURL) { byte[] data = null;转载 2017-11-15 14:56:16 · 6558 阅读 · 1 评论 -
Spring boot 集成FreeMarker
首先在bootstrap.yml里面配置freemarker信息 spring: freemarker: request-context-attribute: req #req访问request suffix: .html #后缀名 content-type: text/html enabled: true cache: false #缓存配置 ...原创 2018-09-10 20:16:26 · 198 阅读 · 0 评论