文章列表,标签:read
Alay
Spring Boot使用@Async实现异步调用:ThreadPoolTaskScheduler线程池的优雅关闭

上周发了一篇关于Spring Boot中使用@Async来实现异步任务和线程池控制的文章:《Spring Boot使用@Async实现异步调用:自定义线程池》。由于最

Alay
Spring Cloud中Hystrix 线程隔离导致ThreadLocal数据丢失

在Spring Cloud中我们用Hystrix来实现断路器,Zuul中默认是用信号量(Hystrix默认是线程)来进行隔离的,我们可以通过配置使用线程方式隔离。 在使用

Alay
Spring Cloud中Hystrix 线程隔离导致ThreadLocal数据丢失(续)

前言 上篇文章《Spring Cloud中Hystrix 线程隔离导致ThreadLocal数据丢失》我们对ThreadLocal数据丢失进行了详细的分析,并通过代码的方式

Alay
Apache安装问题:configure: error: APR not found . Please read the documentation

Linux上安装Apache时,编译出现错误: checking for APR... no configure: error:&nb

Alay
Java中锁的应用之-ReadWriteLock

上面我们用儿子和父亲做了一个例子,儿子太猖狂了,花钱根本没有谱。 下面我们再做一个例子,讲解ReadWriteLock的使用,例子和刚才差不多,但是又多了一个角色母亲,而且父母

Alay
Attempted read from closed stream

报错内容如下: java.io.IOException: Attempted read from closed stream.