So in order to start using the Spring framework(without MAVEN), we need to download the Spring jar files from this website https://repo.spring.io/release/org/springframework/spring/ . We choose the latest release then it takes us to another page where we choose the dist.zip file as the download. Once we download that file, we need to unzip it and look for the lib folder. We copy all the jar files and add them to our java project. For example in Eclipse, if we have a java project called demo, we right click and choose to add a new folder called "lib". We then paste all the jar files into this lib folder. Thing is, we still need to add them to demo's build path. This way when we write code, we'll be able to reference the spring library. So we do this by right clicking on our java app's properties(here called demo). When we get to the properties tab, we simply go to the build path option and then the libraries panel and paste all those jar files there. We then click add jar files and click apply and finish. Now A new file is added under our demo app called Referenced Libraries. It will contain these jar files as well and it is a second reference library after the JRE library for java's main libraries. Thats how we do it.
No comments:
Post a Comment