Home » Tag Archives: Spring Boot (page 5)

Tag Archives: Spring Boot

Multiple Cache Configurations with Caffeine and Spring Boot

spring-interview-questions-answers

Caching is key for performance of nearly every application. Distributed caching is sometimes needed, but not always. In many cases a local cache would work just fine and there’s no need for the overhead and complexity of the distributed cache. So, in many applications, including plain Spring and Spring Boot, you can use @Cacheable on any method and its result ...

Read More »

Functional Hystrix using Spring Cloud HystrixCommands

spring-interview-questions-answers

Spring’s WebClient provides a non-blocking client for making service to service calls.Hystrix, though now in a maintenance mode, has been used for protecting service to service calls by preventing cascading failures, providing circuit breakers for calls to slow or faulty upstream services. In this post, I will be exploring how Spring Cloud provides a newer functional approach to wrapping a ...

Read More »

Spring Boot Error – Error creating a bean with name ‘dataSource’ defined in class path resource DataSourceAutoConfiguration

spring-interview-questions-answers

Hello guys, If you are using Spring Boot and getting errors like “Cannot determine embedded database driver class for database type NONE” or “Error creating a bean with name ‘dataSource’ defined in class path resource ataSourceAutoConfiguration” then you have come to the right place. In this article, we’ll examine different scenarios on which this Spring Boot error comes and what ...

Read More »

Perils of opinionated frameworks, like Spring Boot. Inverting for opinionated code

spring-interview-questions-answers

We developers like abstraction.  Without it, we could not build applications.  Our programming disciplines even require that we code to abstractions and avoid coupling our code to detailed implementations. However, what is the right abstractions for your application? Sadly, the choice of abstractions really comes from our choice of framework.  Frameworks are basically abstract solutions that we extend to solve ...

Read More »

Deploy a Spring Boot Application into Tomcat

spring-interview-questions-answers

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. Deploying applications is hard. Often you need console access to the server from which you pull the latest code and then manually instantiate into your container. In ...

Read More »

Integrate Spring Boot Application with Amazon Cognito

spring-interview-questions-answers

In this article, we will show how to use Amazon Cognito service for authentication users in a Spring Boot application using the OAuth 2.0 client library introduced in Spring Security 5.0. What is AWS Cognito? Amazon Cognito is service offered by AWS which provides user management services like sign up and sign in, in addition to providing support for granting ...

Read More »

Build a Microservice Architecture with Spring Boot and Kubernetes

spring-interview-questions-answers

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. In this tutorial, you’re going to use Kubernetes to deploy a Spring Boot microservice architecture to Google Cloud, specifically the Google Kubernetes Engine (GKE). You’re also going ...

Read More »

Spring Boot – How to skip cache thyemeleaf template, js, css etc to bypass restarting the server everytime

spring-interview-questions-answers

The default template resolver registered by Spring Boot autoconfiguration for ThyemeLeaf is classpath based, meaning that it loads the templates and other static resources from the compiled resources i.e, /target/classes/**. To load the changes to the resources (HTML, js, CSS, etc), we can Restart the application every time- which is of course not a good idea!Recompile the resources using CTRL+F9 ...

Read More »

Build Spring Microservices and Dockerize Them for Production

spring-interview-questions-answers

“I love writing authentication and authorization code.” ~ No Java Developer Ever. Tired of building the same login screens over and over? Try the Okta API for hosted authentication, authorization, and multi-factor auth. In this post, you’ll learn about microservices architecture and how to implement it using Spring Boot. After creating some projects with the technique, you will deploy the ...

Read More »