By the idea to build a maven

First you need to build a project, then you need to build a model, in the work space, project where you can have multiple model, but only one project.

Then the old to build a model of it, it is a maven type.

Then choose the right version of tomcat.

After the project built after you can see, the lack webapp and inside web.xm, so it is necessary to give it a plus:

So you can add the web, but need to give web name to webapp. The default is not a webapp.

Maven can be assigned to the project plus.

Give it a welcome page index.jsp

Then run> editconfig> tomcat server> deployment by clicking your maven project to run.

Then look at the browser starts:

This might finish easiest maven built, you can import pom.xml.

But found no specified browser:

Or to vote for setting>

Next is simple.

This opera is the default browser

 

Guess you like

Origin www.cnblogs.com/timingstarts/p/12622608.html