java
大panda
价值都是自己创造出来的
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
poi word设置字体背景颜色(也叫底纹)
XWPFRun run = getRun(para, 13, "微软雅黑", null);//"EEAD0E"CTRPr pRpr = run.getCTR().getRPr();if(pRpr == null){ pRpr = run.getCTR().addNewRPr(); }CTShd shd = pRpr.isSetShd() ? pRpr.getShd() ...原创 2020-01-10 09:19:47 · 2766 阅读 · 0 评论 -
java反射实现dto与entity互转,解决联合主键或嵌套entity方法
public class TransformUtils { /** * 将dto和entity之间的属性互相转换 */ public static Object populate(Object src, Object target) { Method[] srcMethods = src.getClass().getMethods(); M...原创 2019-04-29 09:59:39 · 1697 阅读 · 0 评论 -
hashmap扩容resize
//hashmap扩容resizefinal Node<K,V>[] resize() { //获取老的tab,容量,阈值 Node<K,V>[] oldTab = table; int oldCap = (oldTab == null) ? 0 : oldTab.length; int oldThr = thresho...原创 2019-10-11 10:12:17 · 186 阅读 · 0 评论
分享