How to Create and Configure Beans in the Spring IoC Container

Spring provides a powerful IoC container to manage the beans which makes up an application. In Spring, Beans can be configured in the Spring IoC container through XML files, properties files, annotations. Spring allows you to configure your beans in one or more bean configuration files. For a simple application we can have a single configuration file whereas in the case of a large application a single file becomes unmanageable and hence we can separate them into multiple configuration file based on their functionality (DAO, Controllers etc.). Lets create a Student Application, through it we will learn how to create and configure beans in Spring IoC Container.

[Read more…]