Here maven project to build a simple attempt to do

Here Insert Picture Description
Selected Maven Project

Here Insert Picture Description
Do not hook directly Next

Here Insert Picture Description
Enter the app
choose to try to do this

Here Insert Picture Description
After the establishment of good jsp error
Here Insert Picture Description
This is due in no Sevlet
to me maven central repository under the lead pack
Here Insert Picture Description
Here Insert Picture Description
Choose a
Here Insert Picture Description
put pom
Here Insert Picture Description
problem to solve
here scope inflicted provided only at compile time using and testing
Here Insert Picture Description

Here only give you a resource directory

We create other directories manually
Java Resources right-new ----> souce Foulder
Here Insert Picture Description
several criteria item

Check the output path of
the project right - "build path -----" configure path

Here Insert Picture Description
Then we convert it into a web project
project property right proties
Here Insert Picture Description

Then deploy the default configuration when the
project right attributes
Here Insert Picture Description
to delete the test deployment

Then we deployed here with jetty
we came here to plug a jetty
Here Insert Picture Description

Here Insert Picture Description
Added to the pom

Here Insert Picture Description

Here Insert Picture Description
Console successful operation

Here Insert Picture Description
The browser run a successful start

If I need is loaded directly onto packaging how to do
Here Insert Picture Description
Here Insert Picture Description
skip the test start

If we need to use it to start tomcat
looking for a tomcat plugin
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/qq_43077857/article/details/90700489