A Guide To Spring Redirects 1. Overview This article will focus on implementing a Redirect in Spring and will discuss the reasoning behind each strategy. Further reading: Redirect to Different Pages after Login with Spring Security Example of how to Redirect to different pages after Login with Spring Security. Read… Continue Reading spring-redirect-and-forward

Spring Boot Security Auto-Configuration 1. Introduction In this article, we’ll have a look at Spring Boot’s opinionated approach to security. Simply put, we’re going to focus on the default security configuration and how we can disable or customize it if we need to. Further reading: Spring Security – security none,… Continue Reading spring-boot-security-autoconfiguration

Converting Between LocalDate and SQL Date 1. Overview In this quick tutorial, we’ll learn how to convert between java.time.LocalDate and java.sql.Date. 2. Direct Conversion To convert from LocalDate to java.sql.Date, we can simply use the valueOf() method available in *java.sql.Date*. Likewise, to convert the current date, we can use: Date date… Continue Reading java-convert-localdate-sql-date

Guide to JSpec 1. Overview Test runner frameworks like JUnit and TestNG provide some basic assertion methods (assertTrue, assertNotNull, etc.). Then there are assertion frameworks like Hamcrest, AssertJ, and Truth, which provide fluent and rich assertion methods with names that usually begin with “assertThat”. JSpec is another framework that allows… Continue Reading jspec

Instance Profile Credentials using Spring Cloud 1. Introduction In this quick article, we’re going to build a Spring Cloud application that uses instance profile credentials to connect to an S3 bucket. 2. Provisioning Our Cloud Environment Instance profiles are an AWS feature that allows EC2 instances to connect to other… Continue Reading spring-cloud-instance-profiles

Difference Between “==” and “===” operators in Kotlin 1. Overview In this article, we are going to talk about the difference between “==” and “===” operators in Kotlin. In Kotlin, just like in Java, we have two different concepts of equality, Referential equality, and Structural equality. 2. Referential Equality For… Continue Reading kotlin-equality-operators