会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
加你油
学习笔记
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
下一页
2021年11月12日
Could not find artifact org.mengyun:tcc-transaction-spring:pom:1.2.4.17 in alimaven
摘要: 可能是maven版本过高,换成apache-maven-3.6.3解决了。
阅读全文
posted @ 2021-11-12 10:35 MartialWorldFish
阅读(54)
评论(0)
推荐(0)
2021年6月1日
java设置任务异步执行
摘要: public class DemoApplication { private static ExecutorService pool; public static void main(String[] args) throws UnsupportedEncodingException, Interr
阅读全文
posted @ 2021-06-01 22:04 MartialWorldFish
阅读(220)
评论(0)
推荐(0)
java任务设置任务超时
摘要: ExecutorService executorService = Executors.newSingleThreadExecutor(); Future<String> future = executorService.submit(() -> myJob(param)); try { //设置超
阅读全文
posted @ 2021-06-01 21:58 MartialWorldFish
阅读(334)
评论(0)
推荐(0)
Java实现HTTP GET 通过 Body 来发送数据
摘要: 在开发过程中和第三方系统对接时遇到需要使用GET请求传递JSON参数,现整理请求方式如下。 POM 1 <dependency> 2 <groupId>org.apache.httpcomponents</groupId> 3 <artifactId>httpclient</artifactId>
阅读全文
posted @ 2021-06-01 00:20 MartialWorldFish
阅读(2365)
评论(0)
推荐(0)
2021年5月17日
优雅地处理重复请求(并发请求)——附Java实现
摘要: 对于一些用户请求,在某些情况下是可能重复发送的,如果是查询类操作并无大碍,但其中有些是涉及写入操作的,一旦重复了,可能会导致很严重的后果,例如交易的接口如果重复请求可能会重复下单。 重复的场景有可能是: 黑客拦截了请求,重放 前端/客户端因为某些原因请求重复发送了,或者用户在很短的时间内重复点击了。
阅读全文
posted @ 2021-05-17 20:14 MartialWorldFish
阅读(834)
评论(0)
推荐(0)
java方法执行超时关闭
摘要: ExecutorService executorService = Executors.newSingleThreadExecutor();Future<Boolean> future = executorService.submit(() -> method(param));try { //设置超
阅读全文
posted @ 2021-05-17 19:33 MartialWorldFish
阅读(558)
评论(0)
推荐(0)
2021年5月15日
PostGIS-将多面转换为单面(PostGIS - convert multipolygon to single polygon)
摘要: 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
阅读(1591)
评论(0)
推荐(1)
2021年3月27日
deepin安装JDK
摘要: 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
阅读(523)
评论(0)
推荐(0)
2021年3月9日
Power Designer反向工程
摘要: 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
阅读(193)
评论(0)
推荐(0)
2021年3月7日
【Redis实操】twemproxy代理搭建
摘要: 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
阅读(107)
评论(0)
推荐(0)
1
2
3
4
下一页
公告