The Context and Dependency Injection is one of the main features in Java frameworks and APIs. Spring Boot supports configuration in an intuitive way. In this article, we will tackle configuration in Spring Boot by overriding the existing configuration.
You may also like: All About Spring Boot [Articles and Tutorials]
Introduction
To make a configuration in Spring Boot, you need to create a class and annotate it with @Configuration
. Usually, in the configuration class, you can define a beans object. But if you want to override built-in configuration, you need to create a new class that extends the built-in class. This includes built-in configurations like security, templating, etc.