Learn about an exciting preview feature in Java 21: unnamed patterns and variables.
Search Results for: variable definition
Thymeleaf Variables
Learn how to define and use variables in Thymeleaf
Refer to Environment Variables in pom.xml
Learn how to reference environment variables in a pom.xml file
Spring MVC @PathVariable with a dot (.) gets truncated
Learn how to handle path variables that contain a dot in Spring MVC request mappings.
Introduction to Clojure
A comprehensive introduction to Clojure programming language.
Introduction to Java 22
Explore the latest Java release, Java 22, which is now in General Availability.
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.
Find the Date of Easter Sunday for the Given Year
Learn how to find the date of Easter Sunday for the given year using three algorithms in Java.
OAuth2 Backend for Frontend With Spring Cloud Gateway
In this tutorial, we implement the OAuth2 Backend for Frontend (BFF) pattern with Spring Cloud Gateway and spring-addons.
Access Job Parameters From ItemReader in Spring Batch
Explore how to work with JobParameters and how to access them from Spring Batch components.
Storing PostgreSQL JSONB Using Spring Boot and JPA
Learn how to proficiently store and manage JSON data in PostgreSQL using Spring Boot and JPA
Parse Java Source Code and Extract Methods
A quick and practical guide to parsing Java source code and extracting methods.
All the Ways Java Uses the Colon Character
Learn how Java uses the colon character in a variety of different ways.
Resolving Gson’s “Multiple JSON Fields” Exception
Discuss the causes for a tricky yet ultimately fixable IllegalArgumentException we can encounter when using Gson
Asserting Nested Map With JUnit
Learn the different ways of asserting the presence of a nested map with JUnit.
MongoDB Atlas Search Using the Java Driver and Spring Data
A quick and practical guide to MongoDB Atlas search with Spring Data.
Optional as a Record Parameter in Java
Learn about using Optional as a record parameter and understand why it’s a bad practice.
Retry Logic with CompletableFuture
Learn how to apply retry logic to CompletableFuture objects.
Drawbacks of the Singleton Design Pattern
Learn the general drawbacks of the Singleton design pattern and check out some alternatives.
Secure Kubernetes Secrets with Vault
Explore different ways to access secrets stored in a Vault instance from Kubernetes-based applications.