Session Attributes in Spring MVC
1. Overview When developing web applications, we often need to refer to the same attributes in several views. For example, we may have shopping cart contents that need to be displayed on multiple...
View ArticleIntroduction to Apache Curator
1. Introduction Apache Curator is a Java client for Apache Zookeeper, the popular coordination service for distributed applications. In this tutorial, we’ll introduce some of the most relevant...
View ArticleHow to Make a Deep Copy of an Object in Java
1. Introduction When we want to copy an object in Java, there’re two possibilities that we need to consider — a shallow copy and a deep copy. The shallow copy is the approach when we only copy field...
View ArticleIntroduction to Akka Actors in Java
1. Introduction Akka is an open-source library that helps to easily develop concurrent and distributed applications using Java or Scala by leveraging the Actor Model. In this tutorial, we’ll present...
View ArticleMultipart Uploads in Amazon S3 with Java
1. Overview In this tutorial, we’ll see how to handle multipart uploads in Amazon S3 with AWS Java SDK. Simply put, in a multipart upload, we split the content into smaller parts and upload each part...
View ArticleSpring Data with Spring Security
1. Overview Spring Security provides a good support for integration with Spring Data. While the former handles security aspects of our application, the latter provides convenient access to the...
View ArticleJava 8 Math New Methods
1. Introduction Usually, when we think about the new features that came with version 8 of Java, functional programming and lambda expressions are first things that come to mind. Nevertheless, besides...
View ArticleREST-assured with Groovy
1. Overview In this tutorial, we’ll take a look at using the REST-assured library with Groovy. Since REST-assured uses Groovy under the hood, we actually have the opportunity to use raw Groovy syntax...
View ArticleMapping LOB Data in Hibernate
1. Overview LOB or Large OBject refers to a variable length datatype for storing large objects. The datatype has two variants: CLOB – Character Large Object will store large text data BLOB – Binary...
View ArticleHow to Find and Open a Class with Eclipse
1. Introduction In this article, we’re going to take a look at a number of ways to find a class in Eclipse. All the examples are based on Eclipse Oxygen. 2. Overview In Eclipse, we often need to look...
View ArticleUsing Guava CountingOutputStream
1. Overview In this tutorial, we’re going to look at the CountingOutputStream class and how to use it. The class can be found in popular libraries like Apache Commons or Google Guava. We’re going...
View ArticleDisplaying Money Amounts in Words
1. Overview In this tutorial, we’ll see how we can convert a monetary amount into words-representation in Java. We’ll also see how a custom implementation could look like, via an external library –...
View ArticleGetting Started with Java and Zookeeper
1. Overview Apache ZooKeeper is a distributed coordination service which eases the development of distributed applications. It’s used by projects like Apache Hadoop, HBase and others for different use...
View ArticleJava Weekly, Issue 221
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 ArticleA Guide to Flips for Spring
1. Overview In this tutorial, we’ll have a look at Flips, a library that implements feature flags in the form of powerful annotations for Spring Core, Spring MVC, and Spring Boot applications. Feature...
View ArticleHamcrest Bean Matchers
1. Overview Hamcrest is a library that provides methods, called matchers, to help developers write simpler unit tests. There are plenty of matchers, you can get started by reading about some of them...
View ArticleA Quick Guide to the Spring @Lazy Annotation
1. Overview By default, Spring creates all singleton beans eagerly at the startup/bootstrapping of the application context. The reason behind this is simple: to avoid and detect all possible errors...
View ArticleWorking with Kotlin and JPA
1. Introduction One of Kotlin’s characteristics is the interoperability with Java libraries, and JPA is certainly one of these. In this tutorial, we’ll explore how to use Kotlin Data Classes as JPA...
View ArticleBuild an MVC Web Application with Grails
1. Overview In this tutorial, we’ll learn how to create a simple web application using Grails. Grails (more precisely it’s latest major version) is a framework built on top of the Spring Boot project...
View ArticleIntroduction to RxRelay for RxJava
1. Introduction The popularity of RxJava has led to the creation of multiple third-party libraries that extend its functionality. Many of those libraries were an answer to typical problems that...
View Article