Señor

Páginas: 117 (29198 palabras) Publicado: 16 de febrero de 2013
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 thewritten 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 atwebmaster@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) ............................................................................ 2Aspect 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 ConfigurationMetadata .................................................................... 23

Spring Bean Scopes ........................................................................ 25
The singleton scope .................................................................................... 25
Example .................................................................................................... 26...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Señor
  • Señor
  • Señor
  • Señor
  • Señor
  • Señora
  • Señor
  • señor

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS