Original SpringBoot practice: how to use Optional

Optional is also one of the new features of Java 8. It is used to handle the null pointer problem and can be used gracefully in the return and processing of the application query interface Impl. The official definition is: The Optional class is a null able container object. If the value exists, the isPresent() method will return true, and c ...

Posted by wanted420 on Wed, 08 Sep 2021 11:41:30 +0200