Spring Security with Thymeleaf 1. Overview In this quick tutorial, we’ll focus on Spring Security with Thymeleaf. We’re going to create a Spring Boot application where we’ll demonstrate the usage of security dialect. Our choice for frontend technology is Thymeleaf – a modern, server-side web templating engine, with good integration… Continue Reading spring-security-thymeleaf

A Guide to Java EE Web-Related Annotations 1. Overview Java EE annotations make developers’ life easier by allowing them to specify how application components should behave in a container. These are modern alternatives for XML descriptors and basically, make it possible to avoid boilerplate code. In this article, we’ll focus… Continue Reading javaee-web-annotations

The Spring @Qualifier Annotation 1. Overview In this article, we’ll explore what the @Qualifier annotation can help us with, which problems it solves, and how to use it. We’ll also explain how it’s different from the @Primary annotation and from autowiring by name. 2. Autowire Need for Disambiguation The @Autowired… Continue Reading spring-qualifier-annotation

XML Serialization and Deserialization with Jackson 1. Overview In this tutorial, we’re going to look at how to serialize Java objects to XML data using Jackson 2.x and deserialize it back to a POJO. We’ll focus on the basic operation that doesn’t require a lot of complexity or customization. 2.… Continue Reading jackson-xml-serialization-and-deserialization

Intro to DataStax Java Driver for Apache Cassandra 1. Overview The DataStax Distribution of Apache Cassandra is a production-ready distributed database, compatible with open-source Cassandra. It adds a few features that aren’t available in the open-source distribution, including monitoring, improved batch, and streaming data processing. DataStax also provides a Java… Continue Reading cassandra-datastax-java-driver

ZonedDateTime with Spring Data MongoDB 1. Overview Spring Data MongoDB module improves readability and usability when interacting with a MongoDB database in Spring projects. In this tutorial, we’ll focus on how to handle the ZonedDateTime Java objects when reading and writing into a MongoDB database. 2. Setup To work with Spring Data… Continue Reading spring-data-mongodb-zoneddatetime