摘要: 重定向 1. 首先设置状态码,设置响应头 2. 通过sendRedirect(String location)方法完成重定向 重定向特点 : 1. 地址栏发生变化 2. 重定向可以访问其他站点(服务器)的资源 3. 重定向是两次请求 转发的特点: 1. 转发路径不变 2. 转发只能访问当前服务器下的 阅读全文
posted @ 2019-08-07 23:00 PoetryAndYou 阅读(187) 评论(0) 推荐(0) 编辑