SSL Handshake Failures 1. Overview Secured Socket Layer (SSL) is a cryptographic protocol which provides security in communication over the network. In this tutorial, we’ll discuss various scenarios that can result in an SSL handshake failure and how to it. Note that our Introduction to SSL using JSSE covers the basics of… Continue Reading java-ssl-handshake-failures

A Guide to Rolling File Appenders 1. Overview While log files often convey useful information, they naturally grow bigger over time, and if allowed to grow indefinitely, their size could become a problem. Logging libraries address this problem using rolling file appenders, which automatically “roll” or archive the current log… Continue Reading java-logging-rolling-file-appenders

Formatting with printf() in Java 1. Introduction In this tutorial, we’ll demonstrate different examples of formatting with the printf() method. The method is part of the java.io.PrintStream class and provides String formatting similar to the printf() function in C. 2. Syntax We can use one of the following PrintStream methods to format… Continue Reading java-printstream-printf

Converting between an Array and a List in Java 1. Overview This quick article is going to show how to convert between an Array and a List using core Java libraries, Guava or Apache Commons Collections. This article is part of the “Java – Back to Basic” series here on… Continue Reading convert-array-to-list-and-list-to-array

Quick Guide to the Spring @Enable Annotations 1. Overview Spring comes with a set of @Enable annotations that make it easier for developers to configure a Spring application. These annotations are used in conjunction with the @Configuration annotation. In this article we will be looking at some these annotations: @EnableWebMvc… Continue Reading spring-enable-annotations