Home » Tag Archives: Spring (page 3)

Tag Archives: Spring

Spring Cloud Stream with Kafka

spring-interview-questions-answers

Overview This sample project demonstrates how to build real-time streaming applications using event-driven architecture, Spring Boot,Spring Cloud Stream, Apache Kafka and Lombok. By the end of this tutorial you’ll have a simple Spring Boot based Greetings micro-service running that takes a message from a REST api writes it to a Kafka topic reads it from the topic outputs it to the console Let’s get started! Btw, you’ll ...

Read More »

Spring Boot 2 Applications and OAuth 2 – Legacy Approach

spring-interview-questions-answers

This post is the second part of a 3 post series exploring ways to enable SSO with an OAuth2 provider for Spring Boot 2 based applications. The 3 posts are: 1.Ways to bootstrap an OpenID Connect compliant OAuth2 Authorization Server/OpenID Provider 2. Legacy Spring Boot/Spring 5 approach to integrating with an OAuth2 Authorization Server/OpenID Provider – this post 3. Newer ...

Read More »

How to Create Spring Boot Project With Spring initializer

spring-interview-questions-answers

Hello Friends, If you have used Spring framework previously, you must be aware that it takes some genuine effort to even get started with basic Spring functionality.With Spring Boot, that initial hassle is gone and you can get started in minutes. Welcome to the world of Spring Boot!!!           In this tutorial, we will see various ways in ...

Read More »

Why SpringBoot is so popular and how to learn SpringBoot effectively?

spring-interview-questions-answers

SpringBoot is the most popular and widely used Java framework. Occasionally this discussion of “Why is SpringBoot so popular?” come between me and my friends/colleagues. Also, I do get emails from various people asking “Spring is huge and how to learn it quickly?”. In this post, I will try to answer these 2 questions. Why is SpringBoot so popular? There could be many ...

Read More »

SpringBoot Messaging with RabbitMQ

spring-interview-questions-answers

RabbitMQ is one of the popular message broker solutions and provides client libraries to be used from various programming languages including Java, Scala, .NET, Go, Python, Ruby, PHP etc. In this tutorial, we will learn how to use RabbitMQ message broker to send and receive messages from a SpringBoot application. We will also look at how to send messages as JSON ...

Read More »

What is SecurityContext and SecurityContextHolder in Spring Security?

spring-interview-questions-answers

The SecurityContext and SecurityContextHolder are two fundamental classes of Spring Security. The SecurityContext is used to store the details of the currently authenticated user, also known as a principle. So, if you have to get the username or any other user details, you need to get this SecurityContext first. The SecurityContextHolder is a helper class, which provide access to the security context. ...

Read More »

Package by layer for Spring project is obsolete

spring-interview-questions-answers

I believe Spring application shouldn’t be structured in package by layer approach. In my opinion, package by feature makes much more sense. First of all, let me describe each approach briefly. “Package by layer” (“Folder by type” in non Java world) This project structure groups source code files into packages/directories based on architecture layer they belong to: . └── net ...

Read More »

Top 20 Spring REST Interview Questions Answers for Java Programmers

spring-interview-questions-answers

Hello guys, I have been sharing some REST with Spring tutorials from last a couple of weeks and today, I am going to share some of the frequently asked Spring and REST interview questions to Java developers applying for Web developer roles. Since Spring Framework is the most popular and the standard framework for developing Java web application and RESTful Web ...

Read More »

Session Management using Spring Session with JDBC DataStore

spring-interview-questions-answers

In web applications, user session management is very crucial for managing user state. In this article, we are going to learn about what are the approaches we have been following to manage user sessions in a clustered environment and how we can use Spring Session to implement it in a much simpler and more scalable way. Typically in production environments, we will ...

Read More »