MVC pattern Flashcards
What are the components of an MVC pattern?
Model, view, and controller
What is a design pattern?
Documented solution to a specific type of problem. It presents the interaction of data and methods across multiple classes
What do the three components of MVC do?
Model - manages the application data, defines the processes, objects and rules used in the system
view - presents information to the user application
Controller - Processes user inputs and how the model behaves
How does the MVC pattern work?
The view sends inputs to the controller
controller updates the model
model updates the view
How does information flow between an MVC pattern?
- HTTP request is sent to the controller
- the request is performed on the model
- view renders information to the user
What is Spring Boot?
Pre-configured set of framework that makes it easier to start up a project quickly.
Easy testing
Easy dependency injection
Decreased “boilerplate” code
What is dependency injection?
Provides an object with dependencies instead of having to construct them. Set up so objects can receive properties from other piece of code. Dependencies can be injected into objects via constructors or setters.