Lazy Initialization in Spring Boot 2 1. Overview In this tutorial, we’ll see how to configure lazy initialization at the application level, starting with Spring Boot 2.2 2. Lazy Initialization By default in Spring, all the defined beans, and their dependencies, are created when the application context is created. In… Continue Reading spring-boot-lazy-initialization

Preventing Username Enumeration Attacks with Spring Security 1. Overview In this tutorial, we’ll describe enumeration attacks in general. More specifically, we’ll explore username enumeration attacks against a web application. And, most importantly, we’ll explore options for handling them through Spring Security. 2. Explaining Enumeration Attacks Enumeration technically means complete and ordered… Continue Reading spring-security-enumeration-attacks

Security with Spring The Security with Spring tutorials focus, as you’d expect, on Spring Security. Get started with the Registration series if you’re interested in building a registration flow, and understanding some of the frameworks basics. Then, explore the topics you’re most interested in, related to security. Finally, have a… Continue Reading security-spring

Kotlin const, var, and val Keywords 1. Introduction In this tutorial, we’ll be outlining the key differences between the const, var, and val keywords in the Kotlin language. To put these keywords into context, we’ll be comparing them to their Java equivalents. 2. Understanding Typing To understand these keywords, we… Continue Reading kotlin-const-var-and-val-keywords

Marker Interfaces in Java 1. Introduction In this quick tutorial, we’ll learn about marker interfaces in Java. 2. Marker Interfaces A marker interface is an interface that has no methods or constants inside it. It provides run-time type information about objects, so the compiler and JVM have additional information about the… Continue Reading java-marker-interfaces

Guide to Spring 5 WebFlux 1. Overview Spring WebFlux framework is part of Spring 5 and provides reactive programming support for web applications. In this tutorial, we’ll be creating a small reactive REST application using the reactive web components RestController and WebClient. We will also be looking at how to secure our reactive endpoints… Continue Reading spring-webflux

A 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 immediately rather than at runtime. However, there’re cases when we need to… Continue Reading spring-lazy-annotation