首先,找到
package org.springframework.web.servlet.view;
public class InternalResourceViewResolver extends UrlBasedViewResolver
UrlBasedViewResolver这个类
/**
* Prefix for special view names that specify a redirect URL (usually
* to a controller after a form has been submitted and processed).
* Such view names will not be resolved in the configured default
* way but rather be treated as special shortcut.
*/
public static final String REDIRECT_URL_PREFIX = "redirect:";
/**
* Prefix for special view names that specify a forward URL (usually
* to a controller after a form has been submitted and processed).
* Such view names will not be resolved in the configured default
* way but rather be treated as special shortcut.
*/
public static final String FORWARD_URL_PREFIX = "forward:";
会有这俩个属性
默认情况下是服务器端跳转,在需要客户端跳转的时候加上“redirect:”即可
【推荐】腾讯云新用户域名抢购1元起,抓紧抢购
· 摩拜发布共享单车与城市可持续发展报告:上海起最早、抗霾最积极
· 保温杯+枸杞:究竟是中年人的孤单,还是年轻人的狂欢?
· 滴滴与美团将在哪些领域火力全开?
· 盖茨J.P.摩根健康大会演讲:生命科学研究可挽救数百万人的生命
· 微博云剪2.0版本上线 2 分钟制作一个短视频
» 更多新闻...
· 以操作系统的角度述说线程与进程
· 软件测试转型之路
· 门内门外看招聘
· 大道至简,职场上做人做事做管理
2016-02-26 微信公众平台JSSDK开发
2014-02-26 我学MSMQ(二)
2014-02-26 我学MSMQ(一)