Step 3: Use spring to develop osgi -- (Step 3: Web) Step 3: Use spring to develop osgi -- (step 1: Environment) step 3: Use spring to develop osgi -- (step 2: Engineering)

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.