Software Transactional Memory in Java Using Multiverse
1. Overview In this article, we’ll be looking at the Multiverse library – which helps us to implement the concept of Software Transactional Memory in Java. Using constructs out of this library, we can...
View ArticleIntroduction to HikariCP
1. Overview In this introductory article, we’ll learn about the HikariCP JDBC connection pool project. This is a very lightweight (at roughly 130Kb) and lightning fast JDBC connection pooling...
View ArticleGuide to Spring Web Flow
1. Overview Spring Web Flow builds on Spring MVC and allows implementing flows within a web application. It’s generally used for creating sequences of steps that guide users through a process or some...
View ArticleComparing getPath(), getAbsolutePath(), and getCanonicalPath() in Java
1. Overview The java.io.File class has three methods — getPath(), getAbsolutePath() and getCanonicalPath() — to obtain the filesystem path. In this article, we’ll have a quick look at the differences...
View ArticleIntroduction to Mustache
1. Overview In this article, we’ll focus on Mustache templates and use one of its Java APIs for producing dynamic HTML content. Mustache is a logicless template engine for creating dynamic content...
View ArticleMultiple Authentication Providers in Spring Security
1. Overview In this quick article, we’re going to focus on using multiple mechanisms to authenticate users in Spring Security. We’ll do that by configuring multiple authentication providers. 2....
View ArticleHow to Add a Single Element to a Stream
1. Overview In this quick article, we’re going to take a look at how to add an element to a Java 8 Stream which is not as intuitive as adding an element to a normal collection. 2. Prepending We can...
View ArticleSerenity BDD with Spring and JBehave
1. Introduction Previously, we have introduced the Serenity BDD framework. In this article, we’ll introduce how to integrate Serenity BDD with Spring. 2. Maven Dependency To enable Serenity in our...
View ArticleIterating over Enum Values in Java
1. Overview Enum in Java is a datatype that helps us assign a predefined set of constants to a variable. In this quick article, we’ll see different ways in which we can iterate over an enum in Java....
View ArticleSpring Remoting with JMS
1. Overview We saw in a previous article how Spring Remoting could be used to provide RPC on top of an asynchronous channel as an AMQP queue. However, we can obtain the same result using JMS too. In...
View ArticleTesting with Google Truth
1. Overview Truth is a fluent and flexible open-source testing framework designed to make test assertions and failure messages more readable. In this article, we’ll explore the key features of the...
View ArticleClassNotFoundException vs NoClassDefFoundError
1. Introduction Both ClassNotFoundException and NoClassDefFoundError occur when the JVM can not find a requested class on the classpath. Although they look familiar, there are some core differences...
View ArticleJava Web Weekly, Issue 178
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Under The Hood With the JVM’s Automatic Resource Management [infoq.com] A deep dive into the mechanics behind...
View ArticleSpring Cloud – Adding Angular 4
1. Overview In our last Spring Cloud article, we added Zipkin support into our application. In this article, we’re going to be adding a front-end application to our stack. Up until now, we’ve been...
View ArticleIntroduction to JUnitParams
1. Overview In this article, we’ll explore the JUnitParams library and its usages. Simply put, this library provides easy parameterization of test methods in JUnit tests. There are situations where...
View ArticleIntroduction to Testing with Arquillian
1. Overview Arquillian is a container-agnostic integration testing framework for Java EE. Using Arquillian minimizes the burden of managing containers, deployments, framework initializations, and so...
View ArticleGuide to Dynamic Tests in Junit 5
1. Overview Dynamic testing is a new programming model introduced in JUnit 5. In this article, we’ll have a look at what exactly dynamic tests are and how to create them. If you’re completely new to...
View ArticleHow to Get the Last Element of a Stream in Java?
1. Overview The Java Stream API was the major feature of the Java 8 release. Streams represent lazily-evaluated sequences of objects and provide a rich, fluent, and monadic-like API. In this article,...
View ArticleHiring a Technical Editor for Baeldung
This is definitely not the typical code focused style of article I usually publish here on Baeldung. Jumping right into it – the site is growing, more and more developers are applying to become...
View ArticleGuide to Escaping Characters in Java RegExps
1. Overview The regular expressions API in Java, java.util.regex is widely used for pattern matching. To discover more, you can follow this article. In this article, we will focus on escaping...
View Article