1、建立Servlet文件tomcat
选中项目,New,Servletui
这里会出错,由于环境没有设置好url
设置J2EE环境:spa
选中项目,properties,选中Java Build Path ,Libraries,Add Librarydebug
以后,选中Server Runtime,点击Next,选中相应的Tomcat,finish。blog
2、修改Servlet文档图片
图片中,代表,访问咱们Servlet的url地址,此项目能够修改成/hello文档
这里若是出错:bug
1.中止tomcatim
2.移除项目
3.从新导入
4.debug启动