本文将演示如何使用 Spring 和 Spring Boot 中实现 REST API 的异常处理,并了解不同版本引入了哪些新功能。 在 Spring 3.2 之前,在 Spring MVC 中处理异常的两种主要方法是:HandlerExceptionResolver 或 @ExceptionHandler 注解。 这两种方法都有一些明显的缺点。...
JDK 13 于 2019 年 9 月 17 日正式发布。 新版本主要包含五个特性 JEP 350: Dynamic CDS Archives JEP 351: ZGC: Uncommit Unused Memory JEP 353: Reimplement the Legacy Socket API JEP 354: Switch Expressions (Preview) JEP 355: Text Blocks (Preview) Dynami...