Spring in Action

Luis Hernandez

lhernandez.nearsoft

lhernandez@nearsoft.com

luishvz

Intro.

The purpose of this presentation give a very basic introduction to the core concepts of Spring and the experience of using it during this year.

What is Spring ?

Spring is a framework that helps you to "wire" different components together.

The Spring Framework is a Java platform that provides comprehensive infrastructure support for developing Java applications. Spring handles the infrastructure so you can focus on your application.

Framework

Is a scaffold that let you build applications around it. Instead of writing something from scratch, you basically just extend a given, working application.

Inversion of Control

You ask for "apple".

You can ask for "fruit".

With IoC

Without IoC

Don’t call me, I’ll call you

In order to use it you need to insert your behavior into various places in the framework. The framework's code then calls your code at these points

Framework and Library differences

Spring Core

  • Dependency Injection (Inversion of Control)

  • Spring's declarative transaction management

  • Spring MVC web application and RESTful web service framework

  • Foundational support for JDBC, JPA, JMS

Spring Ecosystem

Spring Stereotypes

@Component

@Controller

@Repository

@Service

What does Spring give you that normal Java does not?

Spring makes this process easier by taking most of the work on its shoulders, so now you can just concentrate on writing your code and let Spring do the rest for you.

Usual problems using Spring

Just a lot of magic sometimes.

Be proactive about learning.

Find the way that suits best for you and learn something else besides classes material, workshops, presentations, etc.

Thanks for the attention.

deck

By Luis Hernandez