Spring Data MongoDB Transactions 1. Overview Starting from the 4.0 release, MongoDB supports multi-document ACID transactions. And, Spring Data Lovelace now provides support for these native MongoDB transactions. In this tutorial, we’ll discuss Spring Data MongoDB support for synchronous and reactive transactions. We’ll also take a look at Spring Data TransactionTemplate for… Continue Reading spring-data-mongodb-transactions

Setting Up Swagger 2 with a Spring REST API 1. Overview When creating a REST API, good documentation is instrumental. Moreover, every change in the API should be simultaneously described in the reference documentation. Accomplishing this manually is a tedious exercise, so automation of the process was inevitable. In this… Continue Reading swagger-2-documentation-for-spring-rest-api

Container Configuration in Spring Boot 2 1. Overview  In this quick tutorial, we’ll have a look at how to replace the EmbeddedServletContainerCustomizer and ConfigurableEmbeddedServletContainer in Spring Boot 2. These classes were part of previous versions of Spring Boot, but have been removed starting with Spring Boot 2. Of course, the functionality… Continue Reading embeddedservletcontainercustomizer-configurableembeddedservletcontainer-spring-boot