Reading:  

Quick to the point introduction to Spring Framework


Setting up for Spring Framework

To Download Java follow the below link:

The Latest version of Java can be downloaded fromhttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Installation of Java:

After java is downloaded, double click on .exe (file as shown below) to install java.

Install Java

The Java Environment Variables set up:

The required environment variables that need be set

  • CLASSPATH: It points the location of JDK home directory. It also contains the address of the folder from where the jars get loaded by the ClassLoader (For more details of ClassLoader visit here)
  • JAVA_HOME: It points the location of Java home directory.

For windows set-up:

set PATH=C:\Program Files\Java\jre1.8.0_25\bin;
set JAVA_HOME=C:\jdk1.8.0_25

You will have to update above mentioned paths based on what version you have downloaded and where you end up installing it.

For Linux, UNIX, FreeBSD and Solaris:

Environment variable PATH should be set to point to where the Java binaries have been installed.

Example, if we use bash as shell, then we need to add the following to the end of '.bashrc: export PATH=/path/to/java:$PATH'

Setup Eclipse:

To Downloading the latest version of Eclipse, follow the link http://www.eclipse.org/downloads/

Setup eclipse

Each eclipse packaging is different. For Java applications development user go for Eclipse Classic / Eclipse IDE.

We can select operating system for specific eclipse download by selecting option in drop down box in the right corner of the download page. The options like Windows, Linux and Mac.

Installing Eclipse:

No installation is required for eclipse. The downloaded eclipse is packaged as a zip file, we need to extract the zip file and open the eclipse folder you may find as shown below.

To launch the eclipse double-click on eclipse.exe which is highlighted in above screen shot.

Launch eclipse

 

Select a ‘workspace’ (a folder) and click on ok.

A folder .metadata is automatically is created in empty folder given in workspace.

If user selects the check box: "Use this as the default and do not ask again", then this dialog box will not pop up again.

Setup Spring Framework Libraries:

The below are the steps used to download and install framework on machine.

  • Download latest version of Spring framework binaries from http://www.springsource.org/download.
  • Unzip latest download and place it in below folder C:\spring-framework-master.



  • Set Class Path of the Spring pointing to the location of spring binaries.

    Set classpath for spring framework

 

In next part of this tutorial we will start working with a Hello World example with Spring Framework.

 

 

Description

This tutorial covers various topics releated to Spring Framework as listed below

  • Framework Overview
  • Modules
  • Environment Setup
  • Saying Hello World with Spring
  • IoC Containers
  • Bean Definition
  • Bean Scopes 
  • Bean Life Cycle
  • Bean Post Processors
  • Bean Definition Inheritance
  • Dependency Injection
  • Injecting Inner Beans
  • Injecting Collection
  • Beans Auto-Wiring
  • Annotation Based Configuration
  • Java Based Configuration
  • Event Handling in Spring
  • Custom Events in Spring
  • JDBC Framework Overview
  • Transaction Management

 

 



Prerequisites

Prior knowledge of Java is essential

Audience

Beginners or students seeking quick introduction to Spring

Learning Objectives

This tutorial is for beginners seeking quick introduction to Spring Framework.

Author: Subject Coach
Added on: 22nd Jun 2015

You must be logged in as Student to ask a Question.

None just yet!