Forwarding is a request, redirection is a second request
The forwarding path will not change, the redirected path will change
Forwarding can only be forwarded to the internal resources of the project. Redirection can be redirected to the internal resources of the project or external resources of the project (eg: Baidu)
Forwarding can be forwarded to resources under WEB-INF, and redirection cannot be redirected to resources under WEB-INF
Store the data in the request, the forwarding is valid, and the redirection is invalid
The forwarded path is written relative (without http, without ip, without project name), and the redirected path is written with absolute (with http, with ip, with project name)