Let's create a TODO application in Java 1 Brief explanation of MVC

Hello.

As the title suggests, I will write how to make a TODO application in Java. This time I would like to explain what kind of values are flowing in Java before actually writing the code.

TODO application creation link collection

1: A brief description of MVC (here and now) 2: I want to make a template with Spring Initializr and make a Hello world

What is MVC?

What is MVC

Model ... (interacting with and processing the database) View ... (Screen that is actually displayed to the user using HTML / CSS) Controller ... (Ask Model to process data or pass the returned data to View)

Each has a role like this.

So what about Java's MVC?

View, Controller, Service, Repository, Entity

In Java, it seems that it is common to do the Model part with classes called Service, Repository, Entity.

If you write the flow of TODO registration easily

  1. The registration button is pressed on View and the registration details are sent.

  2. The registered contents are passed to the Controller method.

  3. Controller passes the registration details to the Service class.

  4. Service class applies the registered contents to the variable of Entity class and saves it in the database by the method of Repository class.

It is a flow like.

To be honest, I don't think it's easy to grasp this, so I'll explain it one by one in future articles!

Next ↓ 2: I want to make a template with Spring Initializr and make a Hello world

Recommended Posts

Let's create a TODO application in Java 1 Brief explanation of MVC
Let's create a TODO application in Java 6 Implementation of search function
Let's create a TODO application in Java 5 Switch the display of TODO
Create a TODO app in Java 7 Create Header
Let's create a super-simple web framework in Java
Let's create a TODO application in Java 13 TODO form validation 1: Character limit ・ Gradle update to use @Validated
Let's create a TODO application in Java 3 Save temporary data in MySQL-> Get all-> Display on top
Let's make a calculator application with Java ~ Create a display area in the window
A brief explanation of commitAllowingStateLoss
Let's create a TODO application in Java 9 Create TODO display Sort by date and time + Set due date default to today's date
Let's create a TODO application in Java 2 I want to create a template with Spring Initializr and make a Hello world
A quick explanation of the five types of static in Java
Let's make a calculator application in Java ~ Display the application window
A brief description of JAVA dependencies
Let's create a TODO application in Java 12 Processing when a request comes in with an unused HttpMethod ・ Processing when an error occurs in the server
A brief explanation of a maze game made in Java for a cousin of an elementary school student
Let's create a Java development environment (updating)
Role of JSP in Web application [Java]
Volume of trying to create a Java Web application on Windows Server 2016
Create a CSR with extended information in Java
Let's create a timed process with Java Timer! !!
Measure the size of a folder in Java
Try to create a bulletin board in Java
Let's create a custom tab view in SwiftUI 2.0
[Java] Let's create a mod for Minecraft 1.14.4 [Introduction]
A quick review of Java learned in class
[Java] Let's create a mod for Minecraft 1.14.4 [99. Mod output]
Create a native extension of Ruby in Rust
Let's create a versatile file storage (?) Operation library by abstracting file storage / acquisition in Java
[Java] Let's create a mod for Minecraft 1.14.4 [0. Basic file]
[Java] Let's create a mod for Minecraft 1.14.4 [4. Add tools]
How to create a Java environment in just 3 seconds
A quick review of Java learned in class part4
[Java] Create a filter
[Java] Let's create a mod for Minecraft 1.14.4 [5. Add armor]
Let's write a Qiita article in org-mode of Emacs !!
[Java] Let's create a mod for Minecraft 1.14.4 [Extra edition]
[Java] Let's create a mod for Minecraft 1.14.4 [7. Add progress]
[Java] Let's create a mod for Minecraft 1.14.4 [6. Add recipe]
[Java] Let's create a mod for Minecraft 1.16.1 [Add item]
[Java] Let's create a mod for Minecraft 1.16.1 [Basic file]
[Java] Let's create a mod for Minecraft 1.14.4 [1. Add items]
How to create a data URI (base64) in Java
Let's make a robot! "A simple demo of Java AWT Robot"
A quick review of Java learned in class part3
A quick review of Java learned in class part2
Create JSON in Java
[Java] Let's create a mod for Minecraft 1.14.4 [2. Add block]
Create a JAVA WEB application and try OMC APM
[Java] Let's create a mod for Minecraft 1.16.1 [Add block]
A quick explanation of each item in new_framework_defaults_6_1.rb, which is a new application setting added in rails 6.1.
Create a MySQL test environment (+ millions of test data) in 5 minutes
[For beginners] Explanation of classes, instances, and statics in Java
Story of making a task management application with swing, java
[Java] Let's create a mod for Minecraft 1.14.4 [3. Add creative tab]
Create a MySQL container for application testing in Ansible AWX
Activate Excel file A1 cell of each sheet in Java
Create a SlackBot with AWS lambda & API Gateway in Java
Create a method to return the tax rate in Java
I tried to make a client of RESAS-API in Java
Create a simple DRUD application with Java + SpringBoot + Gradle + thymeleaf (1)