Use Maven to build the SpringBoot project in MyEclipse, mavenspringboot

Source: Internet
Author: User

Use Maven to build the SpringBoot project in MyEclipse, mavenspringboot

Development Environment: Myeclipse2017, JDK1.7, and Tomcat7.0.
Use Maven to build a spring boot project in Myeclipse. The detailed process is as follows:

New-> Project... -> Maven Project

Click Next and select

Note: you can filter maven-archetype-webapp directly by using the filter input web. Click

Enter the Group Id, Artifact Id, and Package (refer to the "keyword") and click "Finish"

GroupId: Generally the name of the company or organization.
ArtifactId: Generally the project name.
Packaging: The Packaging type, such as jar/war/rar/ear/pom. The default value is jar.
Version: Version number. GroupId + ArtifactId + Packaging + Version constitute the unique identifier of the project.

4. Click Finish.
The Created directory structure is as follows:

Click the selected project and press F2 to modify the Project name: delete space and Maven Webapp

(Or, right-click the project, right-click Refacotr, and then select Rename)
Now let's take a look at the directory structure of the project:

Index. jsp reports an error.
Solution: add it under pom. xml

 

  
   
Javax. servlet

  Javax. servlet-api

  
   
3.1.0

  

 

View the directory structure of the project.

Now the first step of preparation is complete.

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.