[JAVA] Various MVC models

What is MVC? ?? ??

MVC is a design pattern for implementing application software with a user interface.

(Ref:https://bit.ly/2GQbO6V)

M (Model): Processes not related to input and display, processes business logic of the system V (VIEW): Processing related to input and display C (Controller): Control by bridging the model and view

Specific example

Model: Process data. (Getting data from DB, saving to DB) View: Shows the screen that the user actually sees. Controller: Receives a request from View and issues a processing command to Model. (Receives the processing result from Model and returns it to View as a response)

merit

Since each function is divided, it is not easily affected by changes or corrections.

Recommended Posts

Various MVC models
FizzBuzz various
MVC model