Spring configuration first example

Resource of spring core module Applications are used
1 Spring interface.
2 Spring bean class.
3 Spring- configuration file.
4 Client Applications
All the spring releted jar files put in lib folder directory structure is same as normal java/j2ee applications.

Demo.xml

This example is setter base dependency injection this xml file is spring configuration file we set all those bens in this xml file. Again we create interface and its implantation class.

DemoInterImpl.java

DemoInter.java

DemoClient.java

When we compile and run this program this will print massage with username and current date and time.