Difference between <context:annotation-config> vs <context:component-scan> Spring 1. Overview In this tutorial, we’re going to learn about the differences between two major XML configuration elements of Spring: <context:annotation-config> and <context:component-scan>. 2. Bean Definitions As we all know, Spring provides us with two ways to define our beans and dependencies: XML configuration and Java… Continue Reading spring-contextannotation-contextcomponentscan

Design Strategies for Decoupling Java Modules 1. Overview The Java Platform Module System (JPMS) provides stronger encapsulation, more reliability and better separation of concerns. But all these handy features come at a price. Since modularized applications are built upon a network of modules that depend on other modules to properly… Continue Reading java-modules-decoupling-design-strategies

Extracting Principal and Authorities using Spring Security OAuth 1. Overview In this tutorial, we’ll illustrate how to create an application that delegates user authentication to a third party, as well as to a custom authorization server, using Spring Boot and Spring Security OAuth. Also, we’ll demonstrate how to extract both Principal and Authorities using Spring’s PrincipalExtractor… Continue Reading spring-security-oauth-principal-authorities-extractor