An auto deployment eclipse web project. (By tomcat)

时间:2021-01-30 16:53:42

At past , I always use MyEclipse to create and deploy web project.

Today I try to create a new web project by tomcat without MyEclipse . I found it can auto-deploy too.

The steps are:

1, Create a web project 

file->new->project->dynamic web project,next -next-->

2, Configure tomat in eclipse.

Make sure you have installed tomcat .

windows->preference->server->Installed Runtimes .   Then import your tomcat .

windows->preference->server->Launching .  Click "Automatically published".

3,Right click  your new project , choose "Run as -> Run on server" . next -next-->

Use "http://localhost:8080/%3Cproject%20name%3E/" to visit from browser.