Restful中使用redirect
来源:互联网 发布:ipad小说软件 编辑:程序博客网 时间:2024/05/22 08:40
代码如下:
import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RequestMethod;/** * @author Administrator * */@Controller@RequestMapping(value = "/home")public class LocationRestfulController extends BaseController { @RequestMapping(method = RequestMethod.GET) public String go() {// return "redirect:test"; // 访问http://localhost:8080/home会跳转到http://localhost:8080/test// return "redirect:/test"; // 访问http://localhost:8080/home会跳转到http://localhost:8080/test// return "redirect:home/test"; // 访问http://localhost:8080/home会跳转到http://localhost:8080/home/test return "redirect:/home/test";// 访问http://localhost:8080/home会跳转到http://localhost:8080/home/test }}
阅读全文
0 0
- Restful中使用redirect
- ajax中使用Response.Redirect
- Restful中动词的使用
- 在Updatepanel中使用Response.Redirect
- grails中render、respond、redirect的使用
- 关于在Flask中使用Restful
- Extjs5 中(RESTful)使用操作数据
- 在Drupal中使用Restful之一
- 在Drupal中使用Restful之二
- 在Drupal中使用Restful之三
- 在Drupal中使用Restful之四
- struts的action中使用ActionForward来转发,redirect
- 在MogileFS中使用nginx代替perlbal实现internal redirect
- 在MogileFS中使用nginx代替perlbal实现internal redirect
- .net 中使用Response.Redirect 在新页面打开
- asp.net中Response.write与Response.Redirect同时使用
- Springmvc中使用redirect:list.do 时无法跳转
- JSTL标签中import,redirect标签的使用
- springdata和elasticsearch整合时报错,这是什么原因???
- Restful接口中,对象、Map以及Date类型的传参方式
- 字符编码转换_进制转换(GB2312,GBK,JNI,HexTOStr)
- Android studio 使用Debugger问题(代码中含有ndk)
- Dex2Oat源码流程(3)——Android6.0
- Restful中使用redirect
- Android学习日记1
- 隐藏select右三角
- 46、我的C#学习笔记12
- JAVA学习笔记17——Spring框架第四章
- java如何创建native对象
- 业界 | 人机协作将协助人类创造世界
- 只能使用字母、数字、-连字符、_下划线,不超过150个字符
- Spring+SpringMVC+MyBatis+easyUI整合优化篇(一)System.out.print与Log