Home » Tag Archives: Spring

Tag Archives: Spring

Reactive Streams with Spring Data Cassandra

Today we are going to look at reactive Spring Data Cassandra. This post is actually very similar to one that I did on Reactive Spring Data MongoDB with the only real difference being that they are obviously using different databases. For background information that will not be included in this post have a look at Getting started with Spring Data ...

Read More »

Spring Webflux – Writing Filters

spring-interview-questions-answers

Spring Webflux is the new reactive web framework available as part of Spring 5+.  The way filters were written in a traditional Spring MVC based application(Servlet Filter, HandlerInterceptor) is very different from the way a filter is written in a Spring Webflux based application and this post will briefly go over the WebFlux approach to Filters. Approach 1 – WebFilter The first ...

Read More »

Startup and shutdown scripts in Spring Data Cassandra

Shorter post this time round, it feels nice to get something finished faster than 2 weeks for once. Today we will look at startup and shutdown scripts in Spring Data Cassandra. This is something I probably should of done myself ages ago as it would of made testing my earlier posts much easier. I spent so much time (slightly over ...

Read More »

Difference between @Component, @Service, @Controller, and @Repository in Spring

spring-interview-questions-answers

Before you learn the difference between @Component, @Service, @Controller, and @Repository annotations in Spring framework, it’s important to understand the role of @Component annotation in Spring. During initial release of Spring, all beans are used to be declared in an XML file. For a large project, this quickly becomes a massive task and Spring guys recognize the problem rather quickly. ...

Read More »

Intro to Redis with Spring Boot

1. Overview In this article, we will review the basics of how to use Redis with Spring Boot through the Spring Data Redis library. We will build an application that demonstrates how to perform CRUD operations Redis through a web interface. The full source code for this project is available on Github. 2. What is Redis? Redis is an open ...

Read More »

Spring boot and Apache Camel

As the world of software moves on, more complex systems are being developed, which have to integrate with each other. It started with SOA and it continues with microservices. Camel is the number one integration tool that comes to my mind since nowadays spring boot with camel is a very strong combination.               The ...

Read More »

Using Micrometer with Spring Boot 2

spring-interview-questions-answers

This is a very quick introduction to using the excellent Micrometer library to instrument a Spring Boot 2 based application and recording the metrics in Prometheus Introduction Micrometer provides a Java based facade over the client libraries that the different monitoring tools provide. As an example consider Prometheus, if I were to integrate my Java application with Prometheus, I would have used ...

Read More »