Guide to Spring Type Conversions 1. Introduction In this article, we’ll have a look at Spring’s type conversions. Spring provides out-of-the-box various converters for built-in types; this means converting to/from basic types like String, Integer, Boolean and a number of other types. Apart from this, Spring also provides a solid… Continue Reading spring-type-conversions

Java Base64 Encoding and Decoding 1. Overview In this tutorial, we’re going to explore the various utilities that provide Base64 encoding and decoding functionality in Java. We’re mainly going to illustrate the new Java 8 APIs as well as the utility APIs coming out of Apache Commons. Further reading: Guide… Continue Reading java-base64-encode-and-decode

Java Naming and Directory Interface Overview 1. Introduction The Java Naming and Directory Interface (JNDI) provides consistent use of naming and/or directory services as a Java API. This interface can be used for binding objects, looking up or querying objects, as well as detecting changes on the same objects. While… Continue Reading jndi

Deleting Objects with Hibernate 1. Overview As a full-featured ORM framework, Hibernate is responsible for lifecycle management of persistent objects (entities), including CRUD operations such as read, save, update and delete. In this article, we explore various ways in which objects may be deleted from a database using Hibernate and… Continue Reading delete-with-hibernate

A Custom Spring SecurityConfigurer 1. Overview The Spring Security Java configuration support provides us with a powerful fluent APIs – to define security mappings and rules for an application. In this quick article, we’ll see how we can take this one step forward and actually define a custom configurer; this… Continue Reading spring-security-custom-configurer

Cachable Static Assets with Spring MVC 1. Overview This article focuses on caching static assets (such as Javascript and CSS files) when serving them with Spring MVC. We’ll also touch on the concept of “perfect caching”, essentially making sure that – when a file is updated – the old version… Continue Reading cachable-static-assets-with-spring-mvc