How to create Java WEB project with Eclipse, Maven and Tomcat

preview_player
Показать описание
Prerequisites:
You've downloaded and extracted Tomcat 7.
You have Eclipse and Java EE SDK installed.

What we do:
We create a new Tomcat7 Server in Eclipse
We create a new maven project using the webapp archetype
We add a couple of properties to the POM file to tell maven to use java 7
We add the the "missing" src/main/java foulder.
We set the project runtime to tomcat7 so it will know about the container provided classes.
Then we create a new servlet and add a simple implementation in the GET method, to print a text.
We check if the servlet works.
Рекомендации по теме
Комментарии
Автор

, it's still working .. I used Tomcat 8 Thank youuu!

dariomilic
Автор

i can't see anything worst disply..

kistachandrahasreddy
join shbcf.ru