Home » Tag Archives: Spring (page 5)

Tag Archives: Spring

Push Spring Boot Docker images on ECR

On a previous blog we integrated a spring boot application with EC2. It is one of the most raw forms of deployment that you can have on Amazon Web Services. On this tutorial we will create a docker image with our application which will be stored to the Amazon EC2 container registry. You need to have the aws cli tool ...

Read More »

Spring Boot – The Right Boot for you!

spring-interview-questions-answers

Need a little spring in your step? Tired of all those heavy web servers and deploying WAR files? Well you’re in luck. Spring Boot takes an opinionated view of building production-ready Spring applications. Spring Boot favors convention over configuration and is designed to get you up and running as quickly as possible. In this blog, I will walk you through ...

Read More »

Spring Data support for Cassandra 3

One of the items that caught my eye from the announcement of the new Spring Data release train named Ingalls was that the Spring Data Cassandra finally supports Cassandra 3+. So I revisited one of my old samples and tried it with a newer version of Cassandra. Installing Cassandra The first step is to install a local version of Cassandra and I ...

Read More »

Setting TTL for @Cacheable – Spring

spring-interview-questions-answers

Today I was asked to set the expiry time of cache for some of the keys our application is using, so I quickly started looking for all of the options provided by Spring @Cacheable notation to set up the expiry time or time to live. Since Spring does not provide any configurable option to achieve it, I build one implementation ...

Read More »

Spring-Boot and Cache Abstraction with HazelCast

spring-interview-questions-answers

Previously we got started with Spring Cache abstraction using the default Cache Manager that spring provides. Although this approach might suit our needs for simple applications, in case of complex problems we need to use different tools with more capabilities. Hazelcast is one of them. Hazelcast is hands down a great caching tool when it comes to a JVM based ...

Read More »

Spring Cloud Contracts and Spring Cloud Services on PCF

spring-interview-questions-answers

We had a customer recently who were quite interested in the idea of using Spring Cloud Contract (SCC) in order to prevent API ‘drift’ between microservices teams where individual development teams look after the individual API’s that form part of an enterprise application. Spring Cloud Contract is an implementation of the ‘Consumer Driven Contracts‘ concept for the Spring platform. From the ...

Read More »

Spring boot and Cache Abstraction

spring-interview-questions-answers

Caching is a major ingredient of most applications, and as long as we try to avoid disk access it will stay strong. Spring has great support for caching with a wide range of configurations. You can start as simple as you want and progress to something much more customizable. This would be an example with the simplest form of caching ...

Read More »

Integrate Spring Boot and EC2 using Cloudformation

spring-interview-questions-answers

On a previous blog we integrated a spring boot application with elastic beanstalk. The application was a servlet based application responding to requests. On this tutorial we are going to deploy a spring boot application, which executes some scheduled tasks on an ec2 instance. The application will be pretty much the same application taken from the official spring guide with ...

Read More »

Spring Boot and Application Context Hierarchy

spring-interview-questions-answers

Spring Boot supports a simple way of specifying a Spring application context hierarchy. This post is simply demonstrating this feature, I am yet to find a good use of it in the projects I have worked on. Spring Cloud uses this feature for creating a bootstrap context where properties are loaded up, if required, from an external configuration server which is made available ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns