摘要: 五个不同的结果,查询出来,拼接成一行 SELECT * FROM ( SELECT plant_name as plantName FROM pv_power_plant <if test="plantId != null and plantId != ''"> WHERE `status` = ' 阅读全文
posted @ 2022-11-10 17:37 xiexie0812 阅读(547) 评论(0) 推荐(0)
摘要: 在使用Mybatis 批量更新时 报错信息 查看代码 <span style="color:#ff0000;">八月 29, 2016 4:17:08 下午 org.apache.catalina.core.StandardWrapperValve invoke 严重: Servlet.servic 阅读全文
posted @ 2022-11-10 17:29 xiexie0812 阅读(463) 评论(0) 推荐(0)
摘要: 使用Callable进行多线程处理数据。当处理大批量的数据时,若某个线程返回需要的值则终止其他线程并输出结果。下面是我自己结合 Callable具有返回值的线程,和 CyclicBarrier 这里我叫着等待线程(当所有的线程处理完毕才能继续)。 操作步骤: 1、先把所有的线程创建出来后放入线程池中 阅读全文
posted @ 2022-11-10 17:21 xiexie0812 阅读(271) 评论(0) 推荐(0)
摘要: package com.xx.common.core.utils.geography; import lombok.extern.slf4j.Slf4j; import java.util.ArrayList; import java.util.Arrays; import java.util.Co 阅读全文
posted @ 2022-11-10 17:15 xiexie0812 阅读(935) 评论(5) 推荐(0)
摘要: package com.xx.common.core.utils.geography; import org.apache.commons.collections4.CollectionUtils; import java.util.List; import java.util.stream.Col 阅读全文
posted @ 2022-11-10 17:14 xiexie0812 阅读(1887) 评论(0) 推荐(0)
摘要: package com.xx.common.core.utils.geography; /** * WGS84:谷歌地图 OMS * 火星坐标系:高德地图 腾讯地图 * 百度坐标系:百度地图 */ public class CoordinateUtil { public static double 阅读全文
posted @ 2022-11-10 17:12 xiexie0812 阅读(171) 评论(0) 推荐(0)
摘要: 如下表所示 赤道周长(米) 度数(度) 40076000 360 111322.2222 1 11132.22222 0.1 1113.222222 0.01 111.3222222 0.001 11.13222222 0.0001 1.113222222 0.00001 0.111322222 0 阅读全文
posted @ 2022-11-10 17:11 xiexie0812 阅读(1419) 评论(0) 推荐(0)
摘要: package com.xx.common.core.utils.geography; import com.alibaba.fastjson2.JSON; import com.xx.common.core.baseweb.domain.Point; import java.util.Arrays 阅读全文
posted @ 2022-11-10 17:08 xiexie0812 阅读(163) 评论(0) 推荐(0)
摘要: 使用JNA框架比用原来JNI要方便多了,对于DLL不需要额外的包装,直接就能够使用: 1.JNA框架 a. 定义:JNA(Java Native Access)框架是一个开源的Java框架,是SUN公司主导开发的,建立在经典的JNI的基础之上的一个框架 b. 作用:JNA提供一组Java工具类用于在 阅读全文
posted @ 2022-11-10 17:03 xiexie0812 阅读(957) 评论(0) 推荐(0)
摘要: 1. 引入maven <!--读取图片元数据--> <dependency> <groupId>com.drewnoakes</groupId> <artifactId>metadata-extractor</artifactId> <version>2.6.2</version> </depend 阅读全文
posted @ 2022-11-10 16:57 xiexie0812 阅读(714) 评论(0) 推荐(1)
摘要: public class Test { public static void main(String[] args) { int[] arr = new int[]{1, 2, 3, 4, 5, 6}; printArr(arr); arr = deleteFirst(arr); printArr( 阅读全文
posted @ 2022-11-10 16:50 xiexie0812 阅读(1506) 评论(0) 推荐(0)