Instance Profile Credentials using Spring Cloud
1. Introduction In this quick article, we’re going to build a Spring Cloud application that uses instance profile credentials to connect to an S3 bucket. 2. Provisioning Our Cloud Environment Instance...
View ArticleLife Cycle of a Thread in Java
1. Introduction In this article, we’ll discuss in detail a core concept in Java – the lifecycle of a thread. We’ll use a quick illustrated diagram and, of course, practical code snippets to better...
View ArticleIntroduction to ActiveJDBC
1. Introduction ActiveJDBC is a lightweight ORM following the core ideas of ActiveRecord, the primary ORM of Ruby on Rails. It focuses on simplifying the interaction with databases by removing the...
View ArticleAssertJ Exception Assertions
1. Overview In this quick tutorial, we’ll have a look at AssertJ’s exception-dedicated assertions. 2. Without AssertJ In order to test if an exception was thrown, we’d need to catch the exception and...
View ArticleMethod Constraints with Bean Validation 2.0
1. Overview In this article, we’ll discuss how to define and validate method constraints using Bean Validation 2.0 (JSR-380). In the previous article, we discussed JSR-380 with its built-in...
View ArticleCreate a Sudoku Solver in Java
1. Overview In this article, we’re going to look at Sudoku puzzle and algorithms used for solving it. Next, we’ll implement solutions in Java. The first solution will be a simple brute-force attack....
View ArticleWebSockets with AsyncHttpClient
1. Introduction AsyncHttpClient (AHC) is a library, based on Netty, created to easily execute asynchronous HTTP calls and communicate over the WebSocket protocol. In this quick tutorial, we’ll see how...
View ArticleExploring jrecreate
1. Introduction to EJDK The EJDK (Embedded Java Development Kit) was introduced by Oracle to solve the problem of providing binaries for all the available embedded platforms. We can download the...
View ArticleSpring ResponseStatusException
1. Overview In this quick tutorial, we’ll discuss the new ResponseStatusException class introduced in Spring 5. This class supports the application of HTTP status codes to HTTP responses. A RESTful...
View ArticleInfix Functions in Kotlin
1. Introduction Kotlin is a language that adds many fresh features to allow writing cleaner, easier-to-read code. This, in turn, makes our code significantly easier to maintain and allows for a better...
View ArticleSpring 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 Article