Spring Boot

Spring Boot

Spring RestTemplate Basic Authentication

Upasana | 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

Run method on Spring Boot startup

Upasana | 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

Upasana | 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

Custom TTL for Spring data Redis Cache

Upasana | 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

Sendgrid Dynamic Templates with Spring Boot

Upasana | 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

Spring Webclient multipart file upload

Upasana | September 12, 2020 | 2 min read | 16 views

Spring 5 WebClient for multipart file upload to a remote service using FileSystemResource.

Read Article

Spring Boot WebClient Basic Authentication

Upasana | September 12, 2020 | 2 min read | 0 views

Spring 5 WebClient provides different mechanisms (ExchangeFilterFunctions, Default headers, Request headers) to set Basic Authentication headers at request or webclient level.

Read Article

Spring Data ElasticSearch with Basic Auth

Upasana | July 25, 2020 | 1 min read | 0 views

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

Read Article

Disable SSL validation in Spring RestTemplate

Upasana | July 23, 2020 | 3 min read | 13,826 views

In non production environments, we often need to ignore bad ssl certificates (self-signed, expired, non trusted root, etc) for testing purpose. We will configure RestTemplate to still connect to these hosts without failing

Read Article

Feign Client Logging and connection timeout

Upasana | July 14, 2020 | 2 min read | 2,830 views

How to enable Feign Client network request logging, setting connection timeout & read timeout for http requests in Spring Boot applications

Read Article