Spring Batch – Tasklets vs Chunks
1. Introduction Spring Batch provides two different ways for implementing a job: using tasklets and chunks. In this article, we’ll learn how to configure and implement both methods using a simple...
View ArticleShuffling Collections In Java
1. Overview In this quick article, we’ll see how we can shuffle a collection in Java. Java has a built-in method for shuffling List objects — we’ll utilize it for other collections as well. 2....
View ArticleJava Weekly, Issue 217
Here we go… 1. Spring and Java >> Monitor and troubleshoot Java applications and services with Datadog Optimize performance with end-to-end tracing and out-of-the-box support for popular Java...
View ArticleSpring Boot Security Auto-Configuration
1. Introduction In this article, we’ll have a look at Spring Boot’s opinionated approach to security. Simply put, we’re going to focus on the default security configuration and how we can disable or...
View ArticleFeature Flags with Spring
1. Overview In this article, we’ll briefly define feature flags and propose an opinionated and pragmatic approach to implement them in Spring Boot applications. Then, we’ll dig into more sophisticated...
View ArticleRxJava 2 – Flowable
1. Introduction RxJava is a Reactive Extensions Java implementation that allows us to write event-driven, and asynchronous applications. More information on how to use RxJava can be found in our intro...
View ArticleA Simple Tagging Implementation with JPA
1. Overview Tagging is a standard design pattern that allows us to categorize and filter items in our data model. In this article, we’ll implement tagging using Spring and JPA. We’ll be using Spring...
View ArticleComparing Strings in Java
1. Overview In this article, we’ll talk about the different ways of comparing Strings in Java. As String is one of the most used data types in Java, this is naturally a very commonly used operation....
View ArticleA Guide to Infinispan in Java
1. Overview In this guide, we’ll learn about Infinispan, an in-memory key/value data store that ships with a more robust set of features than other tools of the same niche. To understand how it works,...
View ArticleBuilding Microservices with Eclipse MicroProfile
1. Overview In this article, we’ll focus on building a microservice based on Eclipse MicroProfile. We’ll look at how to write a RESTful web application using JAX-RS, CDI and JSON-P APIs. 2. A...
View ArticleMethod Overloading and Overriding in Java
1. Overview Method overloading and overriding are key concepts of the Java programming language, and as such, they deserve an in-depth look. In this article, we’ll learn the basics of these concepts...
View ArticleObject Type Casting in Java
1. Overview The Java type system is made up of two kinds of types: primitives and references. We covered primitive conversions in this article, and we’ll focus on references casting here, to get a...
View ArticleCode Analysis with SonarQube
1. Overview In this article, we’re going to be looking at static source code analysis with SonarQube – which is an open-source platform for ensuring code quality. Let’s start with a core question –...
View ArticleA Practical Guide to DecimalFormat
1. Overview In this article, we’re going to explore the DecimalFormat class along with its practical usages. This is a subclass of NumberFormat, which allows formatting decimal numbers’ String...
View ArticleIntro to Google Cloud Storage with Java
1. Overview Google Cloud Storage offers online storage tailored to an individual application’s needs based on location, the frequency of access, and cost. Unlike Amazon Web Services, Google Cloud...
View ArticleAn Intro to Spring Cloud Task
1. Overview The goal of Spring Cloud Task is to provide the functionality of creating short-lived microservices for Spring Boot application. In Spring Cloud Task, we’ve got the flexibility of running...
View ArticleHow to Detect the OS Using Java
1. Introduction There are a couple of ways to figure out the OS on which our code is running on. In this brief article, we’re going to see how to focus on doing OS detection in Java. 2. Implementation...
View ArticleCombining Publishers in Project Reactor
1. Overview In this article, we’ll take a look at various ways of combining Publishers in Project Reactor. 2. Maven Dependencies Let’s set up our example with the Project Reactor dependencies:...
View ArticleJava Weekly, Issue 218
Here we go… 1. Spring and Java >> Monitor and troubleshoot Java applications and services with Datadog Optimize performance with end-to-end tracing and out-of-the-box support for popular Java...
View ArticleThe Checker Framework – Pluggable Type Systems for Java
1. Overview From the Java 8 release onwards, it’s possible to compile programs using the so-called Pluggable Type Systems – which can apply stricter checks than the ones applied by the compiler. We...
View Article