Optional makes programming more interesting

In short, Opitonal class is provided by Java. In order to solve the problem that we usually judge whether the object is empty, we will use null= The existence of obj is a headache, leading to NPE (Null Pointer Exception). At the same time, the existence of Optional can make the code simpler, more readable and more efficient General judgment: ...

Posted by xhelle on Wed, 18 May 2022 00:26:51 +0300

Mono and Flux in Spring Reactive Stack Responsive Programming

Spring WebFlux is a set of Web frameworks that the Spring team believes will need to replace the Spring MVC system in the future, built on responsive programming specifications and providing a streaming, non-blocking implementation. WebFlux uses Reactor responsive stream libraries. So learn how to use Reactor's API to get started with WebFlux ...

Posted by tomwhalen on Fri, 15 Apr 2022 20:26:47 +0300