Spring Mvc Tutorial

Only available on StudyMode
  • Topic: Spring Framework, Application server, Enterprise JavaBean
  • Pages : 127 (29107 words )
  • Download(s) : 67
  • Published : February 28, 2013
Open Document
Text Preview
Spring Framework 3.1 Tutorial

SPRING FRAMEWORK 3.1 TUTORIAL

Simply Easy Learning by tutorialspoint.com

tutorialspoint.com
i

COPYRIGHT & DISCLAIMER NOTICE

 All the content and graphics on this tutorial are the property of tutorialspoint.com. Any content from tutorialspoint.com or this tutorial may not be redistributed or reproduced in any way, shape, or form without the written permission of tutorialspoint.com. Failure to do so is a violation of copyright laws. This tutorial may contain inaccuracies or errors and tutorialspoint provides no guarantee regarding the accuracy of the site or its contents including this tutorial. If you discover that the tutorialspoint.com site or this tutorial content contains some errors, please send us the detail at webmaster@tutorialspoint.com and we will verify and fix it as soon as possible.

ii

T able of Contents
Spring Framework Overview ................................................................ 1 Benefits of Using Spring Framework .............................................................. 1 Dependency Injection (DI) ............................................................................ 2 Aspect Oriented Programming (AOP) ............................................................ 2

Spring Framework Architecture ............................................................ 3 Core Container ............................................................................................. 4 Data Access/Integration ................................................................................ 4 Web ............................................................................................................ 4 Miscellaneous .............................................................................................. 5

Spring Environment Setup .................................................................. 6 Step 1 - Setup Java Development Kit (JDK) .................................................... 6 Step 2 - Install Apache Common Logging API ................................................ 6 Step 3 - Setup Eclipse IDE ............................................................................ 7 Step 4 - Setup Spring Framework Libraries ..................................................... 8

Spring Hello World Example .............................................................. 10 Step 1 - Create Java Project ......................................................................... 10 Step 2 - Add Required Libraries ................................................................... 11 Step 3 - Create Source Files......................................................................... 12 Step 4 - Create Bean Configuration File ........................................................ 13 Step 5 - Running the Program ...................................................................... 14

Spring IoC Containers ..................................................................... 16 Spring BeanFactory Container ..................................................................... 17 Example .................................................................................................... 17 Spring ApplicationContext Container ........................................................... 19 Example .................................................................................................... 19

Spring Bean Definition .................................................................... 22 Spring Configuration Metadata .................................................................... 23

Spring Bean Scopes ........................................................................ 25 The singleton scope .................................................................................... 25 Example .................................................................................................... 26 The prototype scope...
tracking img