最近回看了一下List的基础,目前网上主流得对List交并补差有两种方式 第一种:CollectionUtils工具包中的四个方法;该类所在包org.apache.commons.collections.CollectionUtils 第二种:直接调用List中的方法 ...
分类:
其他好文 时间:
2019-12-18 16:27:16
阅读次数:
137
import org.apache.commons.lang3.StringUtils; import org.joda.time.DateTime; import org.joda.time.format.DateTimeFormat; import org.joda.time.format.Da ...
分类:
其他好文 时间:
2019-12-16 22:30:28
阅读次数:
98
本文聊一个工具类,MapStruct ,它是一个在 dto,po(do/entity),vo 等这些 pojo 中转换字段的一个工具,在应用中经常有这样的转换,在 spring 和 apache commons 中也有 BeanUtils 复制,但不够灵活, "我之前也用反射写过一个字段复制" ,这 ...
分类:
其他好文 时间:
2019-12-16 11:28:55
阅读次数:
103
实现原理 方法: @CommonsLog Creates log = org.apache.commons.logging.LogFactory.getLog(LogExample.class); @Log Creates log = java.util.logging.Logger.getLogg ...
分类:
其他好文 时间:
2019-12-15 18:47:53
阅读次数:
92
package com.etoak.simHash; import com.hankcs.hanlp.seg.common.Term; import com.hankcs.hanlp.tokenizer.StandardTokenizer; import org.apache.commons.lan ...
分类:
其他好文 时间:
2019-12-14 19:21:23
阅读次数:
115
时区不一致。 jenkins的的时间和 系统时间不一致。 打开jenkins的【系统管理】 > 【脚本命令行】,在命令框中输入一下命令【时间时区设为 亚洲上海】 System.setProperty('org.apache.commons.jelly.tags.fmt.timeZone', 'Asi ...
分类:
其他好文 时间:
2019-12-14 17:13:46
阅读次数:
85
import org.apache.commons.lang.StringUtils; import org.junit.Test; public class Test{ //总结:isNotBlank()一定要里面有东西 null,""," ",返回的都是false @Test public vo ...
分类:
其他好文 时间:
2019-12-08 15:23:08
阅读次数:
59
1首先注册登录网建SMS网站 http://www.smschinese.cn/ 2.下载Java代码 3.JAVA调用 import java.io.UnsupportedEncodingException;import org.apache.commons.httpclient.Header;i ...
分类:
其他好文 时间:
2019-12-07 21:14:38
阅读次数:
256
基于Mybatis 的SAAS应用多租户数据逻辑隔离package com.opencloud.common.interceptor;import org.apache.commons.lang3.StringUtils;import org.apache.ibatis.executor.state ...
分类:
其他好文 时间:
2019-12-06 19:03:27
阅读次数:
95
@大神爱吃茶 joda-time的使用,创建时间处理工具类DateTimeUtil Joda-Time是专门处理时间的库。可以将我们传进去的date对象标准化为我们想要指定保存的时间格式形式: 1 import org.apache.commons.lang3.StringUtils; 2 impo ...
分类:
其他好文 时间:
2019-12-05 21:46:15
阅读次数:
127