小编sai*_*999的帖子

Spring Web Flux WebClient:连接由对等方休息,#block 因错误而终止。在以下站点观察到错误

我正在使用 Spring Web Flux、Web 客户端来调用 REST API。我收到以下错误。

Oct 21 09:46:27 ql-hybrid-stg web.7d755d6967-5d7v8  Suppressed: java.lang.Exception: #block terminated with an error 
Oct 21 09:46:27 ql-hybrid-stg web.7d755d6967-5d7v8      at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:99) ~[reactor-core-3.3.2.RELEASE.jar!/:3.3.2.RELEASE] 
Oct 21 09:46:27 ql-hybrid-stg web.7d755d6967-5d7v8      ... 97 common frames omitted 
Oct 21 09:46:27 ql-hybrid-stg web.7d755d6967-5d7v8 Caused by: io.netty.channel.unix.Errors$NativeIoException: readAddress(..) failed: Connection reset by peer 
Oct 21 09:46:27 ql-hybrid-stg web.7d755d6967-5d7v8  Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:  
Oct 21 09:46:27 ql-hybrid-stg web.7d755d6967-5d7v8 Error has been observed at the following site(s): 
Oct 21 09:46:27 ql-hybrid-stg web.7d755d6967-5d7v8  |_ checkpoint ? Request …
Run Code Online (Sandbox Code Playgroud)

java spring webclient spring-boot spring-webflux

5
推荐指数
1
解决办法
3万
查看次数

Spring boot 在每次应用程序重新启动后仅运行一次 cron 作业

我有一个带有 cron 作业的 Spring Boot 项目。该作业应该只运行一次。仅当应用程序崩溃或应用程序重新启动时,它才应再次触发。有这个 cron 表达式吗?或者有什么方法可以实现这一点?

java cron spring spring-boot

3
推荐指数
1
解决办法
2994
查看次数

标签 统计

java ×2

spring ×2

spring-boot ×2

cron ×1

spring-webflux ×1

webclient ×1