Introduction to Spring Reactor
1. Overview In this quick article, we’ll introduce the Spring Reactor project. We’ll set up an a real-life scenario for a reactive, event-driven application. 2. The Basics of Spring Reactor 2.1. Why...
View ArticleIntroduction to Nashorn
1. Introduction This article is focused on Nashorn – the new default JavaScript engine for the JVM as of Java 8. Many sophisticated techniques have been used to make Nashorn orders of magnitude more...
View ArticleIntroduction to PMD
1. Overview Simply put, PMD is a source code analyzer to find common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java,...
View ArticleSpring Performance Logging
1. Overview In this tutorial, we’ll look into a couple of basic options the Spring Framework offers for performance monitoring. 2. PerformanceMonitorInterceptor A simple solution to get basic...
View ArticleHow to Work with Dates in Thymeleaf
1. Introduction Thymeleaf is a Java template engine designed to work directly with Spring. For an intro to Thymeleaf and Spring, have a look at this write-up. Besides these basic functions, Thymeleaf...
View ArticleA Custom Data Binder in Spring MVC
1. Overview This article will show how we can use Spring’s Data Binding mechanism in order to make our code more clear and readable by applying automatic primitives to objects conversions. 2. Bind...
View ArticleA Guide to MongoDB with Java
1. Overview In this article, we’ll have a look at integrating MongoDB, a very popular NoSQL open source database with a standalone Java client. MongoDB is written in C++ and has quite a number of...
View ArticleParsing HTML in Java with Jsoup
1. Overview Jsoup is an open source Java library used mainly for extracting data from HTML. It also allows you to manipulate and output HTML. It has a steady development line, great documentation, and...
View ArticleJava Web Weekly, Issue 159
1. Spring and Java >> Java 9 Will Change the Way You Traverse Stack Traces [takipi.com] The upcoming Java release will feature a very interesting Stack-Walking API. >> Feedback on Feeding...
View ArticleA Guide to the Spring Task Scheduler
1. Overview In this article, we’ll discuss the Spring task scheduling mechanisms – TaskScheduler and it’s pre-built implementations along with the different triggers to use. If you want to read more...
View ArticleA Guide to JGit
1. Introduction JGit is a lightweight, pure Java library implementation of the Git version control system – including repository access routines, network protocols, and core version control...
View ArticleCreating PDF Files in Java
1. Introduction In this quick article, we’ll focus on creating PDF document from scratch based on popular iText and PdfBox library. 2. Maven Dependencies Let’s take a look at the Maven dependencies,...
View ArticleGuide to Pattern Matching in Javaslang
1. Overview In this article, we are going to focus on Pattern Matching with Javaslang. If you do not know what about Javaslang, please read the Javaslang’s Overview first. Pattern matching is a...
View ArticleOverview of AI Libraries in Java
1. Introduction In this article, we’ll go over an overview of Artificial Intelligence (AI) libraries in Java. Since this article is about libraries, we’ll not make any introduction to AI itself....
View ArticleGuide to Spring Email
1. Overview In this article, we’ll walk through the steps needed to send emails from both a plain vanilla Spring application as well as from a Spring Boot application, the former using the JavaMail...
View ArticleMessaging With Spring AMQP
1. Overview In this article, we will explore Messaging-based communication over AMQP protocol using Spring AMQP framework. First, we’ll cover some of the key concepts of messaging, and we’ll move on...
View ArticleGuide to Guava Multimap
1. Overview In this article, we will look at one of Map implementations from Google Guava library – Multimap. It is a collection that maps keys to values, similar to java.util.Map, but in which each...
View ArticleExceptions in Java 8 Lambda Expressions
1. Overview In Java 8, Lambda Expressions started to facilitate functional programming by providing a concise way to express behavior. However, the Functional Interfaces provided by the JDK don’t deal...
View ArticleJAX-RS is just an API!
1. Overview The REST paradigm has been around for quite a few years now and it’s still getting a lot of attention. A RESTful API can be implemented in Java in a number of ways: you can use Spring,...
View ArticleGuide to Spring Retry
1. Overview Spring Retry provides an ability to automatically re-invoke a failed operation. This is helpful where the errors may be transient in nature (like a momentary network glitch). Spring Retry...
View Article