Spring Flashcards
To enhance knowledge of Spring for webdev
What is Spring
A framework for enterprise Java applications
What are Springs benefits
IoC, DI, MVC, Boilerplate Reduction
What are some spring sub projects
Core - Inversion of Control, DepInjectoin
Web - Provides Application Context
JDBC-Provides DB classes like JDBC Template
MVC - Model View Controller
ORM - JPA, JDO, Hibernate
DI - Describe how to create objects
How to inject beans
Setter, Constructor, Field
BeanFactory
An interface representing the container of all bean instances
ApplicationContext
A container that holds all metadata, data, and beans of the application
Bean
A POJO Initialized by Spring
Default Bean Scope
Singleton
Are Beans Thread Safe
Not if Singleton
What is Java Config used for?
Configuring the Spring application instead of using xml
Can you have more than one config file for spring?
Yes.
What is Spring Security
A module that provides authentication methods
Spring Boot
A preconfigured project to cut boilerplate. Like create-react-app.
Spring Prototype Pattern
Used to generate multiple instances of a bean.
@RequestMapping
Used to tie an http request to a method.