Spring Framework

Spring Framework - MVC, Dependency Injection, Spring Hibernate, Spring Data JPA, Spring Boot and Spring Cloud for Microservices Architecture.

AWS Java SDK 2 - S3 File upload & download

Carvia Tech | January 05, 2021 | 4 min read | 4,118 views | AWS Tutorials

In this tutorial, we will walk through new AWS SDK 2 for doing object level operations on S3 bucket. We will specifically cover PutObject, GetObject and GetUrl operation on S3 Objects using AWS SDK 2

Read Article

Spring RestTemplate Basic Authentication

Carvia Tech | December 26, 2020 | 3 min read | 2,287 views

We will configure RestTemplate with basic authentication credentials in a Spring Boot application using RestTemplateBuilder.

Read Article

Dialoglfow fulfillment with Spring Boot

Carvia Tech | November 21, 2020 | 2 min read | 649 views

In this tutorial we will learn how to implement Google Dialogflow response fulfilment webhook API with a Spring Boot application.

Read Article

Run method on Spring Boot startup

Carvia Tech | November 21, 2020 | 3 min read | 15,465 views | spring-boot

Spring Boot provides different mechanisms to run a specific method at Application Startup: PostConstruct, CommandLineRunner, ApplicationReadyEvent and ApplicationRunner

Read Article

Elasticsearch with Spring Boot + Spring Data

Carvia Tech | November 18, 2020 | | 14 views

In this article, we will discuss how to configure & use Elasticsearch Engine with Spring Boot & Spring Data using High Level REST Client provided by Elasticsearch.

Read Article

Download a file using Spring RestTemplate

Carvia Tech | October 17, 2020 | | 122 views

In this article we will explore 2 different ways to download a file over Http using Spring RestTemplate.

Read Article

N+1 problem in Hibernate & Spring Data JPA

Carvia Tech | October 03, 2020 | 4 min read | 3,088 views

N+1 problem is a performance issue in Object Relational Mapping that fires multiple Select Queries in database for a single select query at application layer. Hibernate provides multiple ways to identify and prevent this problem.

Read Article

Custom TTL for Spring data Redis Cache

Carvia Tech | October 01, 2020 | 2 min read | 2,978 views

Spring Boot 2.2 provides options to customize Redis Cache using RedisCacheManagerBuilderCustomizer enabling us to set custom value for TTL (time-to-live) for each of the cache.

Read Article

Unresolved circular dependency in spring dependency injection

Carvia Tech | September 30, 2020 | 3 min read | 1,690 views

This is most likely a design level problem and should be resolved by modifying the object level design. This problem indicates that two different Classes share the common responsibility and your design is lacking the abstraction of responsibilities.

Read Article

Sendgrid Dynamic Templates with Spring Boot

Carvia Tech | September 22, 2020 | 2 min read | 0 views

In this tutorial we will use Twilio SendGrid Dynamic Templates for sending emails from a Spring Boot application.

Read Article