Spring is a lightweight container , providing centralized, automated configuration and wiring of your application objects, using a technique called “Dependency Injection”. … If not found, the class will try to be created as usual, then be autowired by Spring.