Spring
Inversion Of Control (IOC)
public class Graduate {
private Programmer programmer;
}
// That assume all the graduate must find a programmer job, which is strongly coupledpublic class Graduate{
private Job job;
public void setJob(Job job){
this.job = job;
}
}
// The job class is an interface;
// The job of the graduate will handled by another class(e.g Main class)
// which make the graduate loosely coupled with Job classDependency Injection
Initial
Dependency Injection (by constructor)
Dependency Injection (by setter)
Why Spring?
Structure of Java Spring
Data Access Integration
Web
Core
Bean
Introduction
Scope
Type
Singleton vs Prototype
Life Cycle
Dependency Injection
Auto Wire
By Type / By Name (XML)
By Type (Annotation)
By Name (Annotation)
Configuration
Annotation
XML
Component Scanning
Introduction
Component
Service
Repository
Controller
RestController
Last updated