A Guide to Spring Session Reactive Support: WebSession Spring Web 1. Introduction In this article, we’ll learn how to combine Spring Session with Spring WebFlux. Specifically, we’ll learn how to use Spring WebSession which unites Spring Session with Spring Boot 2’s WebFlux. A Spring Session is defined as “a simplified… Continue Reading spring-session-reactive

Custom Scope in Spring 1. Overview Out of the box, Spring provides two standard bean scopes (“singleton” and “prototype”) that can be used in any Spring application, plus three additional bean scopes (“request”, “session”, and “globalSession”) for use only in web-aware applications. The standard bean scopes cannot be overridden, and… Continue Reading spring-custom-scope

Auto-Generated Field for MongoDB using Spring Boot 1. Overview In this tutorial, we’re going to learn how to implement a sequential, auto-generated field for MongoDB in Spring Boot. When we’re using MongoDB as the database for a Spring Boot application, we can’t use @GeneratedValue annotation in our models as it’s… Continue Reading spring-boot-mongodb-auto-generated-field

Testing with JGoTesting 1. Overview JGoTesting is a JUnit-compatible testing framework inspired by Go’s testing package. In this article, we’ll explore the key features of the JGoTesting framework and implement examples to showcase its capabilities. 2. Maven Dependency First, let’s add the jgotesting dependency to our pom.xml: <dependency> <groupId>org.jgotesting</groupId> <artifactId>jgotesting</artifactId>… Continue Reading jgotesting