Home » Tag Archives: Spring (page 2)

Tag Archives: Spring

Build Authentication the Easy Way with Spring Security 5.0 and OIDC

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. Spring Security is not just a powerful and highly customizable authentication and access-control framework, it is also the de-facto standard for securing Spring-based applications. Once upon a ...

Read More »

Creating multiple RouterFunctions in Spring WebFlux

spring-interview-questions-answers

In this post we will be looking at defining multiple router functions to different logical domains in Spring WebFlux. This might not be a problem if you are creating “Microservices” as you will most likely only be working within a single domain for each service, but if you are not, then you will likely have the need to include multiple ...

Read More »

Feature toggle in Spring Boot 2

spring-interview-questions-answers

Whether you like it or not, software development is a collaborative activity. Integration work has always been demonized and treated as necessary evil. There are several approaches which try to solve the challenge of effective integration. The feature toggle belongs to that group. In this article, you’ll see in practice how feature toggles, also known as feature flags, can be ...

Read More »

Secure Your Vert.x Server with Single Sign-on from Okta

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. Vert.x is one of the fastest growing elements in the Spring ecosystem, and securing a Vert.x server can be a challenge. Deploying Okta allows you to add ...

Read More »

Doing stuff with Spring WebFlux

spring-interview-questions-answers

Spring Boot 2.0 went GA recently, so I decided to write my first post about Spring for quite a while. Since the release I have been seeing more and more mentions of Spring WebFlux along with tutorials on how to use it. But after reading through them and trying to get it working myself, I found it a bit hard ...

Read More »

MicroServices – Part 5 : Spring Cloud Zuul Proxy as API Gateway

spring-interview-questions-answers

In microservices architecture, there could be a number of API services and few UI components that are talking to APIs. As of now, many microservices based application still use monolithic front-ends where the entire UI is built as a single module. You may choose to go with micro-frontends where the UI is also decomposed into multiple microservice talking to APIs ...

Read More »

Build REST Web Service using Spring Boot

spring-interview-questions-answers

This tutorial provides a step-by-step guide on how to build a restfull web service using Spring Boot. Prerequisites: Eclipse IDE (neon release) Maven 4 Java 1.8 1. Create maven web project Open eclipse then create a new maven web project and name it as SpringBootRest. The structure of the generated project looks like the following: 2. pom.xml After creating the web project, the ...

Read More »

Spring Boot 2 native approach to SSO with OAuth 2/OpenID Connect

spring-interview-questions-answers

This post is the final 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: Ways to bootstrap an OpenID Connect compliant OAuth2 Authorization Server/OpenID Provider Legacy Spring Boot/Spring 5 approach to integrating with an OAuth2 Authorization Server/OpenID Provider  Newer Spring Boot 2/Spring 5 approach ...

Read More »

Spring @Lazy annotation use cases

spring-interview-questions-answers

The Spring framework with almost no effort can solve for you many common programming problems, but some of its features are less known than others. In this post, we’re going to take a close look at the @Lazy annotation, which belongs to this group. After reading several examples, you should be able to apply the annotation to your daily development ...

Read More »