Create a Maven Javaweb project with Eclipse

Source: Internet
Author: User

In fact, I will not create a Maven Javaweb project, I was blind to a bit, unexpectedly succeeded.

One of the conditions here is that your MAVEN is already well-equipped on your computer.

The first step is to File->new->maven Project

Here I have chosen my own common directory

Click Next

Select Maven-archetype-webapp, then click Next

This error is due to the absence of a server jar package.

Here is a server jar package.

Right-click on the project name, build Path->configure build Path

Then select Server Runtime

I've configured the TOMCAT8 server here.

And then there's the following.

Then the project error is gone.

You can run down here.

Here is the code for INDEX.JSP:

< HTML > < Body > < H2 > Hello world! </ H2 > </ Body > </ HTML >

Visit URL http://localhost:8080/Libary/index.jsp

You can see that the access was successful.

Create a Maven Javaweb project with Eclipse

Related Article

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.