Sometimes we need to reuse stored procedures when moving to Spring Boot JPA/ORM because they still serve their purpose. We wouldn’t want to reinvent things but reuse them instead. Although stored procedures traditionally do not return data, we can use
Quickly Create a Spring Boot JDBC Application
We can create a Spring Boot application that uses JDBC as quickly as making its JPA variant without hassle. But no doubt, JDBC applications are much faster than those relying on ORM technology. For many, the idea of a JDBC
Quickly Create a Spring Boot JPA Application
Creating a new Spring Boot application that uses JPA is easy, straightforward, and does not involve complex configuration of any kind. You may have worked on other Spring Boot applications which you didn’t develop from scratch. Chances are those applications
Spring Boot – Publish and Consume Custom Application Events
This post shows how to implement the Observer Design Pattern using the facilities available from Spring Application Events. More importantly, it shows how to publish and consume custom application events in Spring Boot. Observer Design Pattern – Publish And Consume
How To Use WebFlux with Spring Boot
Using WebFlux with Spring Boot is straightforward and may not require changes when moving from Spring MVC. We will still use the same set of annotations like RestController and RequestMapping, to name a few. However, we use WebFlux to tap
Create Email in Spring Boot using Apache FreeMarker
Suppose our application needs to email in text or HTML format; how can we do that without changing a lot of codes? We use templates! Spring Boot makes it a lot easier working with Apache FreeMarker with FreeMarker Starter POMs.
Headstart Framework: Identity Access Management (IAM) Service
The general design of the Headstart Framework makes it flexible to implement an Identity Access Management (IAM) service. Then, we could use the service with both monolith or distributed applications. Also, we could turn a Headstart application into an Identity
Spring Boot Security Tests With PreAuth And WithMockUser
When we implement authorization in Spring Boot with Spring Security, for instance, using the PreAuth annotation, we should never skip automated tests for it. We could use the @PreAuth, among other annotations, to control authenticated users’ access to some methods
Headstart Framework: Flyway and Supported Databases
We have designed the Headstart framework to be database-agnostic to support major database products with the help of Flyway. To achieve this database agnosticism, Headstart uses Spring Data/Hibernate but relies on migration scripts for creating database tables. We run these
Retry Operation at specific Exception using Spring Retry
Spring-Retry allows us to retry operations when the codes encounter exceptions. How do we limit the retries to specific exceptions only? For instance, we wouldn’t want to retry SOAP Web Service operations. The operations may throw exceptions due to invalid