Spring Framework

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

Custom TTL for Spring data Redis Cache

Carvia Tech | May 15, 2020 | 2 min read | 36 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

Spring Data ElasticSearch using HTTPS and Basic Auth

Carvia Tech | May 06, 2020 | 1 min read | 0 views

In this article we will configure Spring Data Elastic Search RestHighLevelClient using SSL and Basic Authentication.

Read Article

Basic Auth Security in Spring Boot 2

Carvia Tech | December 30, 2019 | 3 min read | 1,552 views | Spring Boot 2

In this Spring Boot 2.2 REST API tutorial we will setup Spring Security with Basic Authentication. User details are stored in-memory. We will be using Kotlin as the language.

Read Article

RestTemplate with Basic Authentication

Carvia Tech | December 30, 2019 | 3 min read | 1,596 views

We will configure RestTemplate in Spring Boot application to use basic authentication credentials in order to access protected resources on remote server.

Read Article

Java AWS Lambda using Spring Cloud Function

Carvia Tech | December 26, 2019 | 4 min read | 3,612 views

In this tutorial we will use Spring Cloud Functions (version 2.x) in Java to create and deploy a simple AWS Lambda.

Read Article

Send Gupshup SMS using Java API

Carvia Tech | December 23, 2019 | 3 min read | 80 views

send Gupshup SMS using Java API via RestTemplate, OkHttpClient, Plain HttpUrlConnection, Java 11 HttpClient, Spring WebClient and Retrofit

Read Article

Generating UPI Payment QR Code in Java and Spring

Carvia Tech | December 16, 2019 | 3 min read | 391 views

We will generate UPI Payments compliant (BHIM, GPay, PayTM) QR Code in PNG/JPG/Base64 format using zxing library in Java & Spring based application.

Read Article

AWS SDK 2.0 - S3 File upload & download in Java

Carvia Tech | December 16, 2019 | 4 min read | 2,815 views | AWS Tutorials

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

Read Article

Feign exception handling in Spring Cloud

Carvia Tech | December 10, 2019 | 2 min read | 8,509 views

Using RestControllerAdvice to Catch and handle Feign exception in Spring Cloud environment during inter-service communication

Read Article

Feign common headers using RequestInterceptor

Carvia Tech | December 07, 2019 | 1 min read | 2,440 views

We will inject common headers to all requests in Feign using RequestInterceptor in Spring Boot application.

Read Article