spring mvc使用重定向跳转页面需要哪些配置及jar包

2025-05-17 04:13:26
推荐回答(1个)
回答1:

使用注解:
在web.xml中:


dispatcher
org.springframework.web.servlet.DispatcherServlet
1


dispatcher
/


dispatcher-servlet.xml中配置:
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">