The job of the Spring IoC container is to keep your business logic clean by managing the lifecycle and configuration of objects that would otherwise make things messy. But the Spring container doesn't ...
According to IoC, an application must be developed as a set of simple JavaBeans (or plain-old Java objects—POJOs), with a a lightweight IoC container wiring them together and setting the dependencies.