Repaso
EspaƱol

What is Spring Framework, in one sentence?

Options

  1. A CSS library used to style web pages and components
  2. A Java framework whose container creates beans and wires them together (Correct option)
  3. A database engine that stores and queries relational data
  4. A build tool that compiles and packages Java projects

Answer

A Java framework whose core idea is a container that creates your objects (beans) and connects them to each other (dependency injection)

Why

Spring is a very large Java framework. Its heart is the "IoC container" (Inversion of Control): instead of your code doing new and wiring everything by hand, Spring creates the objects, called beans, and gives each class the other objects it needs.

On top of that core it offers modules for web (Spring MVC), database access (Spring Data), security (Spring Security), transactions, testing and more.

Remember

Spring = container that builds and wires your objects.

Key terms

Practice this question in Repaso