自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 反射获取集合中范型的具体类型

private static List<String> arr = new ArrayList<>();public static void main(String[] args) throws Exception { Class<本类> aClass = 本类.class; //通过反射获取arr属性 Field arr1 = aClass.getDeclaredField("arr"); //通过属性获取泛型 Type generi

2022-03-02 10:59:13 428

原创 PostgreSQL跨库--postgres_fdw

新建postgres_fdw插件create extension postgres_fdw;新建远程数据库服务器。连接自身跨库操作时,host请填写localhost,port请填写show port命令返回的本地端口CREATE SERVER NxDocExchange_server FOREIGN DATA WRAPPER postgres_fdw OPTIONS ( HOST 'localhost', port '3034', dbname'Wangda_NxDocExchange'.

2022-02-24 11:01:01 815

原创 java8 ConcurrentHashMap的computeIfAbsent方法的性能问题

If the specified key is not already associated with a value,attempts to compute its value using the given mapping functionand enters it into this map unless {@code null}. The entiremethod invocation is performed atomically, so the function isapplied a

2021-04-25 10:10:28 993

原创 一些算法模板

并查集class UnionFind{ int[] p; UnionFind(int num){ //方便数组操作 for(int i=0;i<=num;i++){ p[i]=i; } } int find(int x){ //递归 将每个元素指向最终的老大,缩短路径 if(p[x]!=x) p[x]=find(p[x]); return p[

2021-03-07 16:56:56 55

原创 java8日期类

java8日期类LocalDate now = LocalDate.now();System.out.println("今天:"+now);int year = now.getYear();int month = now.getMonthValue();int dayOfMonth = now.getDayOfMonth();DayOfWeek dayOfWeek = now.getDayOfWeek();System.out.println(year+"年"+month+"月"+dayOfM

2021-02-04 11:02:01 50

原创 poi IFERROR的使用记录

poi IFERROR的使用记录使用poi导出excel使用了iferror,但是导出的excel中显示iferror公式处为#NAME?,双击编辑后公式生效百度查找使用 sheet.setForceFormulaRecalculation(true); 但是并未生效百般查找后终于找到了根源问题Apache poi's HSSF produces *.xls files in binary BIFF format of Excel 97 - 2003. But the IFERROR funct

2021-02-01 15:37:04 320

原创 Docker

Docker 由镜像(Image)、容器(Container)、仓库(Repository) 三部分组成。docker安装卸载旧版本sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \

2020-08-08 09:09:39 53

原创 git操作

合并 git merge变基将当前分支的提交复制到指定的分支之上。 gir rebase交互式变基在我们正在 rebase 的提交上,我们可以执行以下 6 个动作:reword:修改提交信息;edit:修改此提交;squash:将提交融合到前一个提交中;fixup:将提交融合到前一个提交中,不保留该提交的日志消息;exec:在每个提交上运行我们想要 rebase 的命令;drop:移除该提交重置git reset默认 git reset --.

2020-07-03 09:53:50 107

原创 js数组方法

Array.from()从一个类似数组或可迭代对象创建一个新的,浅拷贝的数组实例。从String生成数组Array.from('foo'); // [ "f", "o", "o" ]从Set生成数组const set = new Set(['foo', 'bar', 'baz', 'foo']);Array.from(set);// [ "foo", "bar", "baz" ]从Map生成数组const map = new Map([[1, 2], [2, 4], [4

2020-07-03 09:52:55 117

原创 sql记录

将动态列值作为表头SELECT CONCAT( 'SELECT `v_sys_user`.id', GROUP_CONCAT(' , `t_', REPLACE(name, '`', '``'), '`.roleName AS `', REPLACE(name, '`', '``'), '`' SEPARATOR ''), ' FROM `v_sys_user` ', GROUP_CONCAT(' LEFT JOIN `v_sys_user`

2020-07-03 09:52:38 67

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除