Spring - DI & IOC

DI & IOC:
* Dependency injection is the concept where one object is loosely coupling with another object is called DI.
* In Spring with the help of IOC container we are achieving this. It is responsible to do for us to give DI in our application.
* Dependency Invertion is the concept, that is where we are creating Interface or abstract class, then we will give the implementation,
then using spring will autowired the bean.


Advantages :
1. Loosely coupling.
2. Testing

Comments

Popular posts from this blog

How to set Java Object into JaxBElement ?

GitLab