Spring MVC: Request forwarding and request redirection

Insert image description here

Request forwarding

Forwarding (forward) refers to the server jumping from one resource to another after receiving the request. Request forwarding is a single request and does not change the browser's request address.

Simple example:

1. Forwarding through String type return value

package cn.edu.springmvcdemo.controller;

import org.springframework

Guess you like

Origin blog.csdn.net/qq_56886142/article/details/131996860