Create a new ssh project (Maven)

1. The beginning of a new project
Insert picture description here

2. GroupId: refers to the unique identifier of the project organization, which actually corresponds to the package structure of java, is the directory structure of java in the main directory.
ArtifactID: is the unique identifier of the project. The actual name of the corresponding project is the root directory of the project. name.

xyi
Three, configure the maven warehouse
Maven home directory: the place where apache-maven-3.5.0 is placed.
Local repository: Configure the local repository of maven. (In the setting.xml of conf in apache-maven-3.5.0)
Insert picture description here

Four, auto-Import (the import in the lower right corner)

Insert picture description here

5. Configure the tomcat server.
Insert picture description here
Change the Deployment: add the project you want to run in tomcat to tomcat
Insert picture description here

6. Add the necessary structure in the web project: resources.
Insert picture description here

Adding a dependency
Spring is equivalent to a container, and the ApplicationContext.xml configuration file is the most important.
Hibernate: Add, delete, check and change.
Struts: Connect the background and the foreground.

Guess you like

Origin blog.csdn.net/qq_43479839/article/details/104221128