Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请求转向怎么弄 #27

Closed
Dizner opened this issue Aug 22, 2017 · 3 comments
Closed

请求转向怎么弄 #27

Dizner opened this issue Aug 22, 2017 · 3 comments

Comments

@Dizner
Copy link

Dizner commented Aug 22, 2017

No description provided.

@yanzhenjie
Copy link
Owner

具体方法我也忘记了,原理是,设置响应码为302,然后Location头中写重定向地址。

response.setStatusCode(302);
response.setHeader("Location", "重定向地址")

@Dizner
Copy link
Author

Dizner commented Aug 28, 2017

好的,谢谢

@yanzhenjie
Copy link
Owner

可以试试新版本,加了热插拔、拦截器、过滤器等不少新特性。新版本很方便重定向,详细请看看文档。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants