Spring Flashcards Preview

Full Stack Interview Questions > Spring > Flashcards

Flashcards in Spring Deck (21):
1

What is Spring

A framework for enterprise Java applications

2

What are Springs benefits

IoC, DI, MVC, Boilerplate Reduction

3

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

4

How to inject beans

Setter, Constructor, Field

5

BeanFactory

An interface representing the container of all bean instances

6

ApplicationContext

A container that holds all metadata, data, and beans of the application

7

Bean

A POJO Initialized by Spring

8

Default Bean Scope

Singleton

9

Are Beans Thread Safe

Not if Singleton

10

What is Java Config used for?

Configuring the Spring application instead of using xml

11

Can you have more than one config file for spring?

Yes.

12

What is Spring Security

A module that provides authentication methods

13

Spring Boot

A preconfigured project to cut boilerplate. Like create-react-app.

14

Spring Prototype Pattern

Used to generate multiple instances of a bean.

15

@RequestMapping

Used to tie an http request to a method.

16

What is the config file for your db. It describes the datasource.

JDBC Template

17

What is Aspect Oriented Programming?

Aspect Oriented Programming when a regex (PointCut) matches the variable (JoinPoint) being evaluated, then a method (Advice) is executed.

18

What is Weaving

The process spring uses to tie aspects to objects.

19

What coding paradigm uses events to horizontally scale?

Reactive Programming - Analogous to microservices, the concept of using events to scale your classes.

20

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.

21

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.