摘要: 可能是maven版本过高,换成apache-maven-3.6.3解决了。 阅读全文
posted @ 2021-11-12 10:35 MartialWorldFish 阅读(46) 评论(0) 推荐(0) 编辑
摘要: public class DemoApplication { private static ExecutorService pool; public static void main(String[] args) throws UnsupportedEncodingException, Interr 阅读全文
posted @ 2021-06-01 22:04 MartialWorldFish 阅读(201) 评论(0) 推荐(0) 编辑
摘要: ExecutorService executorService = Executors.newSingleThreadExecutor(); Future<String> future = executorService.submit(() -> myJob(param)); try { //设置超 阅读全文
posted @ 2021-06-01 21:58 MartialWorldFish 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 在开发过程中和第三方系统对接时遇到需要使用GET请求传递JSON参数,现整理请求方式如下。 POM 1 <dependency> 2 <groupId>org.apache.httpcomponents</groupId> 3 <artifactId>httpclient</artifactId> 阅读全文
posted @ 2021-06-01 00:20 MartialWorldFish 阅读(2052) 评论(0) 推荐(0) 编辑
摘要: 对于一些用户请求,在某些情况下是可能重复发送的,如果是查询类操作并无大碍,但其中有些是涉及写入操作的,一旦重复了,可能会导致很严重的后果,例如交易的接口如果重复请求可能会重复下单。 重复的场景有可能是: 黑客拦截了请求,重放 前端/客户端因为某些原因请求重复发送了,或者用户在很短的时间内重复点击了。 阅读全文
posted @ 2021-05-17 20:14 MartialWorldFish 阅读(741) 评论(0) 推荐(0) 编辑
摘要: ExecutorService executorService = Executors.newSingleThreadExecutor();Future<Boolean> future = executorService.submit(() -> method(param));try { //设置超 阅读全文
posted @ 2021-05-17 19:33 MartialWorldFish 阅读(539) 评论(0) 推荐(0) 编辑
摘要: Is it possible to import a shape file containing multipolygons into single polygon in PostGIS? Whenever I try importing a shape file of a polygon, it 阅读全文
posted @ 2021-05-15 20:11 MartialWorldFish 阅读(1346) 评论(0) 推荐(1) 编辑
摘要: 1、下载JDK https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html 2、解压jdk并放到安装位置 进入到压缩包下的目录,解压到目录 tar -zxvf jdk-8u281-linux-x64.tar.g 阅读全文
posted @ 2021-03-27 01:40 MartialWorldFish 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 1、MySQL数据库连接(JDBC方式) JDBC的配置方式需要一些基础的环境和准备,但是也很简单,无非也就是JDK和mysql的连接jar包,这里不再展开阐述。 1.1 新建一个pdm,dbms选择mysql 1.2 Database - Connect 选择数据库连接 1.3 配置连接信息 数据 阅读全文
posted @ 2021-03-09 21:38 MartialWorldFish 阅读(157) 评论(0) 推荐(0) 编辑
摘要: twemproxy仓库地址 环境:CentOS Linux release 7.7.1908 (Core) 1、下载 yum update nss git clone https://github.com/twitter/twemproxy.git github速度慢可以导入到Gitee上,从Git 阅读全文
posted @ 2021-03-07 17:02 MartialWorldFish 阅读(92) 评论(0) 推荐(0) 编辑