我理解是有三个context:
第一个访问是http://wait:8080/forget/index.html
第二个访问不是应该是http://localhost:8080/getKey/User.html
第三个只有一个path他的docBase是什么?
正确的访问路径是http://localhost:8080/demo1/User.html
/demo1/User.html这两个没有什么关联
这三个东西搞不明白,应该怎么去理解和区分
http://localhost:8080/demo1/User.html
这个地址
表示context的path,getKey也是在web设置的一个context。
为什么在访问的时候不是getKey而是demo1?
http://localhost:8080/demo1/getKey
返回响应的时候地址又变成getKey,不太明白这些地址都是怎么变的?