![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 2378 阅读 · 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 · 1587 阅读 · 0 评论 -
hashmap扩容resize
//hashmap扩容resize final 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 · 122 阅读 · 0 评论