In this tutorial, we learn how to convert a protobuf Timestamp instance to a Java LocalDate.
Search Results for: any
Pass a Class as a Parameter in Java
Explore scenarios where we may need to pass a class as a parameter, enabling dynamic behavior and flexibility in our code.
Converting a Java Project/Module Into a Maven Project/Module in IntelliJ IDEA
A quick and practical guide to converting a Java project/module into a Maven project/module in IntelliJ IDEA.
Code Coverage vs. Test Coverage
A quick tutorial on the differences between code coverage and test coverage.
Can @Transactional and @Async Work Together?
Explore the compatibility between the @Transactional and @Async annotations in the Spring framework.
Intro to the Apache Commons Compress Project
In this tutorial, we explore Apache Commons Compress, a library for file compression, archiving, and extraction. It supports various formats like TAR, ZIP, GZIP, BZIP2, and more.
Join Two Tables Using jOOQ
Explore various types of joins available in jOOQ.
Set Matrix Elements to Zero in Java
In this tutorial, we learn various approaches to setting a matrix’s entire row and column to zero if one of the elements is zero.
New Features in Java 21
Learn about the new features of Java 21, like record patterns and switch enhancements for cleaner code.
Introduction to Light-4J
Learn the core philosophy, key features, and architectural concepts of the Light-4j library.
The Difference Between Throwing an Exception and Mono.error() in Spring Webflux
In this tutorial, we learn the differences between throwing an exception and Mono.error() in Spring WebFlux.
Convert a Phone Number in Words to Number with Java
We may wish to convert a telephone number, expressed in words, into its equivalent digits. We look at a general algorithm for processing the names of digits and multiplicative words such as double.
How to Test Spring Application Events
Learn how to test code that uses Spring application events.
Continue With Transaction After Exception in JPA
Understand when continuing with the transaction after encountering an exception may be necessary and learn how to handle this in Spring JPA.
Querying JSONB Columns Using Spring Data JPA
Explore various approaches for querying JSONB columns using Spring Data JPA
Disable @Cacheable in Spring Boot
Learn how to configure the cache in Spring Boot and learn how to disable the cache when needed.
Statements Before super() in Java
Learn about the sequence of statements within Java constructors, particularly the placement of super() calls.
Immutable vs Unmodifiable Collection in Java
Learn how to choose between Unmodifiable and Immutable Collections in Java.
Multiple-Level Mock Injection Into Mockito Spy Objects
Learn how Mockito annotations work in multiple-level injection scenarios.
Disable @EnableScheduling on Spring Tests
Learn different options for configuring integration tests while testing applications that use Spring Boot’s scheduled tasks mechanisms