Basic Spring Inversion Of Control (IOC)
In layman terms, inversion of controls is about separating concerns.
Without IoC: You have a laptop computer and you accidentally break the screen. And darn, you find the same model laptop screen is nowhere in the market. So you're stuck.
With IoC: You have a desktop computer and you accidentally break the screen. You find you can just grab almost any desktop monitor from the market, and it works well with your desktop.
Your desktop successfully implements IoC in this case. It accepts a variety type of monitors, while the laptop does not, it needs a specific screen to get fixed.
https://repo.spring.io/release/org/springframework/spring/
- Choose the latest stable release "*-dist.zip".
- Copy all the jar files under lib folder from the downloaded zip.
- Create a new folder name lib under your working directory.
- Paste those jar files under lib folder.
- Add classpath to your eclipse project.
- Right click on your "Project" >> "Properties" >> "Java Build Path" >> "Libraries" tab >> Click "Add JARs" >> "Select all the JAR files from you lib folder" >> "Apply and Close".
- Now there will be a "Referenced Libraries" folder which will have your all spring JAR files.
- Done
Right click on your project >> Run As >> Java Application