[1st] How to create a Spring-MVC framework project

Introduction

I'm Matsushita from Dream Hanks. This time, I will explain the procedure for creating a project for the Spring-MVC framework.

In this web application development, MyBatis is used as the DB access framework.

Summary of serialized articles

Explanation of what to install

Tools / environment

Prepare the following items. ・ Eclipse2020 ・ Jdk: 1.8 ・ Tomcat: 8.5 ・ Mysql: 8. ・ A5SQL

What to download with eclipse

The following can be downloaded from eclipse → help → marketplace ・ Spring4 ・ Spring Tools 3 Add-On for Spring Tools 4

How to create a new project

① Select a new project

② Search with Spring → Select "Spring Legacy Project" → Next   無題.png

Why did you choose "Spring Legacy Project"?

Legacy projects may have to be set up by yourself compared to Boot. You can learn more about the Spring framework by configuring it yourself.

In particular, the following points are significantly different from Spring Boot. -You have to set pom.xml, root-context.xml, servlet-context.xml ・ You have to prepare tomcat yourself.

③ Set the project name ④ Set "Spring MVC Project" for the template → Next

無題.png

Why did you choose "Spring MVC Project" as the template?

First of all, the template is the file structure of the project as shown in the image below. By selecting "pring MVC Project", you can create a file structure that is specific to the Spring MVC model to some extent. We will prepare eclipse for easy development.

無題.png

⑤ Set the top level directory of the package Example "com.dreamhanks.workmanager] com.dreamhanks → Set the top level directory name workmanager → Set the app name you want to create

無題.png

in conclusion

Next time, I will explain how to link Spring, MySql, and MyBatis. [2nd] How to link Spring, MySql and MyBatis

Thank you for reading.

Recommended Posts

[1st] How to create a Spring-MVC framework project
How to create a method
How to create a Spring Boot project in IntelliJ
[Spring Boot] How to create a project (for beginners)
[Java] How to create a folder
How to make a Maven project
How to create a Maven repository for 2020
[Swift5] How to create a splash screen
[rails] How to create a partial template
How to create a new Gradle + Java + Jar project in Intellij 2016.03
How to create pagination for a "kaminari" array
How to create a class that inherits class information
How to create a theme in Liferay 7 / DXP
How to create docker-compose
How to easily create a pull-down in Rails
[Rails] How to create a Twitter share button
How to create a Java environment in just 3 seconds
[Rails] How to create a signed URL for CloudFront
How to create a JDBC URL (Oracle Database, Thin)
How to create a data URI (base64) in Java
[Apple Subscription Offer] How to create a promotional offer signature
How to create an application
How to leave a comment
How to insert a video
How to change a TERASOLUNA 5.x blank project to support PostgreSQL
How to create a lightweight container image for Java apps
How to create a form to select a date from the calendar
How to create a placeholder part to use in the IN clause
How to create a service builder portlet in Liferay 7 / DXP
How to create and launch a Dockerfile for Payara Micro
How to create a Wear OS by Google app project on Android Studio 3.0 or higher
Create a Jetty project using Eclipse
How to add columns to a table
Preparing to create a Rails application
How to make a Java container
How to sign a Minecraft MOD
How to make a JDBC driver
Create a Java project using Eclipse
How to write a ternary operator
[Swift] How to send a notification
How to make a splash screen
How to make a Jenkins plugin
Try to create a server-client app
How to make a Java array
Create a Maven project with a command
How to create a jar file or war file using the jar command
How to make a hinadan for a Spring Boot project using SPRING INITIALIZR
How to create a registration / update function where the table crosses
[Rails 6] How to create a dynamic form input screen using cocoon
How to create a web server on an EC2 instance on AWS
[Xcode] How to add a README.md file
How to execute a contract using web3j
How to sort a List using Comparator
How to make a Java calendar Summary
A memorandum on how to use Eclipse
How to redo a deployment on Heroku
How to install Play Framework 2.6 for Mac
How to quickly create a reverse proxy that supports HTTPS with Docker
How to create a query using variables in GraphQL [Using Ruby on Rails]
How to use BootStrap with Play Framework
[Basic] How to write a Dockerfile Self-learning ②