Tomcat URL 编码配置
http://localhost:8080/examples/servlets/servlet/饺子?author=饺子
其中
http: 对应scheme,协议
localhost: 对应Domain,主域
8080: port,端口,配置在tomcat
examples: ContextPath,配置在tomcat
servlet/servlet: ServletPath,在web.xml中
饺子: pathInfo,指到具体的servlet
author=饺子: QueryString,传递的参数,如果是post就是表单方式提交
浏览器编码将非ASCII字符编码成16进制数然后再之前加上”%”
对URL的URI不分进行解码的字符实在