Explore the nuances of implementing a global exception-handling strategy within Spring Cloud Gateway, delving into its technicalities and best practices.
Search Results for: global
Apply Default Global SecurityScheme in springdoc-openapi
Learn how to use springdoc-openapi to define a default global security scheme and apply it as the default security requirement of the API.
Spring @EnableWebSecurity vs. @EnableGlobalMethodSecurity
Spring Security in Spring Boot allows a couple of different approaches for setting access rights for our endpoints. We explore both the standard web security module and the JSR–250 approach here.
Java Global Exception Handler
Learn how to globally handle all uncaught exceptions in your Java application
REST with Spring Course
Learn to implement a production-grade, fully secure REST API with Spring 6 and Spring Boot 3.
How to Convert Between java.sql.Timestamp and ZonedDateTime in Java
Learn how to convert between ZonedDateTime and java.sql.Timestamp classes in Java.
Setting Default TimeZone in Spring Boot Application
You may wish your Spring Boot application to run with a timezone different from your machine’s default. In this tutorial, you can learn to configure this at different points during Spring’s startup.
How to Intercept a Request and Add Headers in WebFlux
Explore different ways of intercepting and adding custom headers for both server web requests and web client requests in Spring WebFlux
Checking Which Java Version Is Running in Eclipse
This tutorial delves into determining the Java version in Eclipse, emphasizing the distinction between Eclipse’s global Java version and project-specific configurations.
Internet Address Resolution SPI in Java
Learn how Internet Address Resolution works in Java using the InetAddress API.
OpenAPI Generator Custom Templates
Learn how to use OpenAPI Generator Custom Templates to generate customized client and server code from REST API definitions.
Migrate Application from Spring Security 5 to Spring Security 6/Spring Boot 3
In this tutorial, we learn how to migrate an existing application using Spring Security 5 to Spring Security 6.
Custom JSON Deserialization Using Spring WebClient
Learn about custom deserialization and how this can be implemented using Spring WebClient.
Create Kubernetes Operators with the Java Operator SDK
Learn about the concept of Kubernetes operators and how we can implement them using the Java Operator SDK.
Remove Null Objects in JSON Response When Using Spring and Jackson
Learn how to leverage Jackson mapping to simplify our REST interactions.
UTF-8 Validation in Java
Explore UTF-8 encoded bytes and string conversion and different types of UTF-8 validation based on byte and stream.
Java Weekly, Issue 521
Stream Gatherers, GC improvements, exceptions in switch, Quarkus virtual threads, lesser-known apache projects, and Software Engineering. A good week.
HttpSecurity vs. WebSecurity in Spring Security
In this tutorial, we learn the difference between HttpSecurity and WebSecurity in Spring.
Catch Common Mistakes with Error Prone Library in Java
Explore the functionalities of the Error Prone library, from installation to customization, and the benefits it offers in enhancing code quality and robustness.
Generating Unique Positive long Using UUID in Java
Learn how to use a UUID to generate a unique numeric value.