Home » Spring » Page 18

Tag Archives: Spring

2 Ways to Setup LDAP Active Directory Authentication in Java Spring Security Example Tutorial

spring-interview-questions-answers

LDAP authentication is one of the most popular authentication mechanism around the world for enterprise application and Active directory (an LDAP implementation by Microsoft for Windows) is another widely used LDAP server. In many projects, we need to authenticate against active directory using LDAP by credentials provided in the login screen. Sometimes this simple task gets tricky because of various ...

Read More »

Spring Security Concurrent Session Control Example Tutorial – How to limit number of User Session in Java JEE Web Application

spring-interview-questions-answers

If you don’t know, Spring security can limit the number of sessions a user can have. If you are developing a web application especially a secure web application in Java JEE then you must have come up with the requirement similar to online banking portals have e.g. only one session per user at a time or no concurrent session per user. Even ...

Read More »

Spring MVC Tutorial

spring-interview-questions-answers

1. Introduction As an Enterprise Java Developer, one of the main focus in the job is developing web applications. With a web application, many challenges also come into the picture as consequences. To be specific, some of these are state management, workflow and validations. The HTTP protocol’s stateless nature only make things more complex. The Spring’s web framework is designed ...

Read More »

Spring Boot & JPA & Hibernate & Oracle

java-interview-questions-answers

In this tutorial we show how to create a Spring Boot application that communicates with an Oracle data source through Hibernate. Prerequisites: Eclipse IDE (neon release) Maven 4 Java 1.8 1- Create maven project Open eclipse, then create a new maven project and name it as SpringBootHibernate. At the end of this tutorial, we’ll get the following project structure: 2- ...

Read More »

Interacting with Cassandra using the Datastax Java driver

I’m back with more Cassandra and Java integration today this time focusing on using the Datastax Java driver rather than Spring Data Cassandra which I have already written about quite a lot. The Datastax driver is actually used by Spring Data to interact with Cassandra but comes with some extra goodies built on top of it. But we don’t want ...

Read More »

Spring Cloud Gateway – Configuring a simple route

spring-interview-questions-answers

Spring Cloud Gateway can be considered a successor to the Spring Cloud Netflix Zuul project and helps in implementing a Gateway pattern in a microservices environment. It is built on top of Spring Boot 2 and Spring Webflux and is non-blocking end to end – it exposes a Netty based server, uses a Netty based client to make the downstream microservice calls and ...

Read More »

Spring Framework with Maven Tutorial

spring-interview-questions-answers

In this post, we shall demonstrate how to use Maven dependencies for Spring framework for very specific use-cases. The latest versions of all the libraries we use can be found on the Maven Central. 1. Introduction Understanding how Maven dependencies work and how they are managed, is important in a project for an effective build cycle and the clear concepts ...

Read More »

Spring Security with Maven Tutorial

spring-interview-questions-answers

1. Introduction In this post, we shall demonstrate how to use Maven dependencies for Spring Security for very specific use-cases. The latest versions of all the libraries we use can be found on the Maven Central. Understanding how Maven dependencies work and are managed is important in a project for an effective build cycle and clear concepts about what versions ...

Read More »