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.
What is the config file for your db. It describes the datasource.
JDBC Template
What is Aspect Oriented Programming?
Aspect Oriented Programming when a regex (PointCut) matches the variable (JoinPoint) being evaluated, then a method (Advice) is executed.
What is Weaving
The process spring uses to tie aspects to objects.
What coding paradigm uses events to horizontally scale?
Reactive Programming - Analogous to microservices, the concept of using events to scale your classes.
How does spring 5 work with java 9?
Spring 5 and java 9: Everything is modularized. A module is a level above packages. Analogous to container classes in react and angular modules.
What is a conditional
Used to specify the order of bean instantiation. E.g. if Bean A requires bean B to be loaded, you can ensure that B is instantiated before A.