4.2编写第一个servlet(/hi未运行成功)

2:复写doGet(),和doPost方法

 

 3:编写servlet

 4:部署项目到Tomcat并且在六浏览器中访问

在Application context后面加上hello,区别与(localhost:8080)访问时需要用localhost:8080/hello(即项目名)

 

 5;访问java程序,需hello/hi(即路径名)

猜你喜欢

转载自www.cnblogs.com/jiafeng1996/p/12306485.html
今日推荐