Next we will create a web project. For simplicity, We will directly use the template in Virgo to create a new project. The control layer uses spring MVC 3.
Create a WEB Project
Open STS and create a project. Select sprinng template project.
Figure: Create a spring template project
Select spring MVC Project
Figure: Template Selection
Enter the project name and package name.
Figure: Enter the project name and package name
Click Finish. You may need to download the file in the middle. You can download the file normally.
Then let's look at our project. The project structure directory is as follows, which is actually a standard Maven web project.
Figure: Engineering Structure
After the project is created, run Maven clean and Maven install. If there is no problem, the error message on the project disappears.
We add the project to Virgo in the same way as other application servers, for example: