SpringMvc能从servlet跳转到servlet吗?不用response这个内置对象

SpringMvc能从servlet跳转到servlet吗?不用response这个内置对象

  1. redirect:视图名 代表的是重定向
  2. forward:视图名代表的是服务器内跳转

楼上正解

既然用springmvc了,就可以直接用注解

 @Controller
servlet1 类{

 @Autowired
    private servlet2 servlet2;


}


希望对你有用

http://blogxinxiucan.sh1.newtouch.com/