Setup for Introduction to Spring 5, Spring MVC, and Spring REST
Required Software
- Hardware requirements:
- Intel-based machine (any dual core processer is fine) running Windows 10 or later.
- 4+ GB RAM recommended (depending on your OS needs)
- Approximately 1 GB free hard disk space
- Java 8 (instructions below)
- Eclipse JEE IDE (instructions below)
- Browser: The latest version of Chrome, Firefox, or Edge.
- Zip utility: 7-zip (open source zip utility): http://www.7-zip.org/
- Adobe Acrobat Reader: http://get.adobe.com/reader/
Instructions
Java 8
- Download and accept the license agreement, find your platform (e.g. Windows 86) and click on the link to download it, then download the installer file for your platform. Note:If the above link doesn't work, try this link
- These instructions assume version 1.8.0_161, but any Java 8 version should work. If you use a different version, file and directory names will be different.
- Double click on install file – (e.g. 64 bit: jdk-8u161-windows-x64.exe or 32 bit: jdk-8u161-windows-i586.exe) to start the install. Install into the default installation directory: - e.g. C:\Program Files\Java\jdk1.8.0_161 - Include all components in the installation, including the JRE.
- Important Note: Make sure that the architecture version you install (32 bit or 64 bit) matches the Eclipse architecture version.
Note: Only one version of Java should be installed.
Eclipse JEE IDE
The labs are worked on and deployed with Eclipse Java EE edition. Instructions below are for the Java EE 4.7.2/Oxygen version, but any relatively recent version will work. ( Luna/4.4 or later)
- Download and on the "Download Links" section on the right hand side, click on the link for the your platform (e.g. Windows 64-bit). Save the zip file to your disk.
- With a zip utility, open the install file - e.g. eclipse-jee- oxygen-2 win32-x86_64.zip (64 bit) or eclipse-jee- oxygen-2- win32.zip (32 bit). Extract the zip file to C:\. This will create a directory where Eclipse is installed.
- Nothing else needs to be done to install Eclipse, though you can copy a shortcut from C:\eclipse\eclipse.exe to the desktop to make starting Eclipse easier
- Important Note: Make sure that the architecture version you install (32 bit or 64 bit) matches the Java JDK architecture version
- Test Eclipse by double-clicking C:\eclipse\eclipse.exe or the desktop shortcut if you installed one. Eclipse should prompt for a workspace. You may cancel the operation because the workspace will be assigned by your instructor. If Eclipse displays an error message, you may need to contact your technical support staff to troubleshoot the issue.
- Apache Tomcat
Tomcat is the reference implementation of the Servlet and JSP specifications – developed under The Apache Software Foundation. The easiest version to use is the latest stable 8.5.x release (8.5.27 when this document was created). If you use a different version, the install file names will change accordingly- Download. You need to download apache-tomcat-XXX.zip, where xxx is the latest stable (i.e. non-beta) version of Tomcat 8.5, e.g., apache-tomcat-8.5.27.zip.
- On that page, go to the "Binary Distributions" section for Tomcat 8.5, and download the "core" zip file for the current version (e.g. apache-tomcat-8.5.27.zip).
- Using a zip utility, open the file apache-tomcat-8.5.27.zip and extract all files into C:\.