L-7 - 8 - JBDL
L-7 - 8 - JBDL
1. Modularity
2. Separation of Logic between the different Layers
3. Security and authentication
4. Easy application development with less code
5. Make the application loosely coupled
6. Extensive support for Databases, Kafka , Redis etc.
Dependency Injection
Dependency Injection (DI) is a design pattern and a fundamental concept in software
engineering where the dependencies of a component (i.e., an object) are provided from
the outside rather than created by the component itself. In simpler terms, instead of a
class creating its own dependencies, those dependencies are "injected" into the class
from an external source.
Autowiring
Autowired in Spring is a feature that allows the Spring container to automatically inject
dependencies into beans without explicit configuration. It helps to reduce boilerplate
code by handling the wiring of beans automatically, based on certain rules or
configurations.
Types of Autowiring
1. ByName
2. ByType
3. Constructor
Stereotype Annotations
Stereotype - component,service, controller, repository,
Working with the properties file and read value using value
annotation
@PropertyResource @Value
@Named, @Inject, @Resource
BeanPostProcessor, BeanFactoryPostProcessors,