This article shows how to create a Spring Boot app that requires API key for an endpoint using Spring Security. We also demonstrate how to combine this with other authentication mechanisms in the same codebase.
In this article, we are going to consider the differences between @Transactional and TransactionTemplate in managing database transactions in a SpringBoot application. We will also observe their different behaviours with exceptions
We will learn how to use Flyway to create database schema and even seed the database with data when our application is starting up for the first time