Files Required For Spring Application Are
First Create New Java Project SpringDemo1 in Eclipse
Copy jar files to project and add jar files to build path
Create MyApp class in org.manish.javasafari package
Create Triangle class in org.manish.javasafari package
Add code to Tringle Class
Create spring.xml file and add code to it
Add code to MyApp class
In MyApp class we are not hard coding triangle object instead using bean factory for creating object from configuration file i.e. spring.xml.This is how we are decoupling dependency.
Run the application and see the output