@requestmapping--springmvc注解的使用变量和全局部*替代变量方法
来源:互联网 发布:js高德地图api接口 编辑:程序博客网 时间:2024/05/22 03:21
package com.wanju.project001.zonghe.common.controller;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.wanju.project001.zonghe.utils.PublicProperty;
@Controller
@RequestMapping("/xinwenmenhu")
public class PublicXinWenDataController {
// @RequestMapping("/content/atype/140528/shishi/*")
@RequestMapping("/content/atype/{PublicProperty.currTime}/shishi/*")
public ModelAndView listall(HttpServletRequest request,HttpServletResponse response){
System.out.println("测试是否进入");
//ModelAndView mav=new ModelAndView("xinwenmenhu/content/atype/140528/shishi/*");
//下面是测试的一个实例,没有用通配符
ModelAndView mav=new ModelAndView("xinwenmenhu/content/atype/140528/shishi/732923606");
return mav;
}
}
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.wanju.project001.zonghe.utils.PublicProperty;
@Controller
@RequestMapping("/xinwenmenhu")
public class PublicXinWenDataController {
// @RequestMapping("/content/atype/140528/shishi/*")
@RequestMapping("/content/atype/{PublicProperty.currTime}/shishi/*")
public ModelAndView listall(HttpServletRequest request,HttpServletResponse response){
System.out.println("测试是否进入");
//ModelAndView mav=new ModelAndView("xinwenmenhu/content/atype/140528/shishi/*");
//下面是测试的一个实例,没有用通配符
ModelAndView mav=new ModelAndView("xinwenmenhu/content/atype/140528/shishi/732923606");
return mav;
}
}
0 0
- @requestmapping--springmvc注解的使用变量和全局部*替代变量方法
- 成员变量和局部变量的使用
- SpringMVC基础-4-@RequestMapping注解的使用
- 局部变量的使用
- 局部变量的使用
- SpringMVC 的@RequestMapping注解
- springmvc的@requestMapping注解
- java中类变量和方法局部变量的初始化
- 类的方法、成员变量和局部变量
- 单片机全局变量和局部变量的使用 .
- 单片机全局变量和局部变量的使用
- cpp全局变量和局部变量的使用
- oracle的boolean变量和替代变量
- 局部static变量 和 成员变量 的使用技巧
- oracle 的替代变量&和&&
- 【SpringMVC】@RequestMapping 注解使用技巧
- SpringMVC注解...@controller和@RequestMapping
- 局部变量和成员变量的区别
- 拓扑排序
- 利用DB字典表查询表格字段定义
- Painless threading
- 视频会议十大开源项目排行 .
- 你不常用却常见的matlab函数
- @requestmapping--springmvc注解的使用变量和全局部*替代变量方法
- jQuery 之 setTimeout 传递字符串参数报错
- js面向对象编程: js类定义函数时用不用prototype的区别?
- Java语言中的路径基础知识(总是忘,记录下)
- 为程序生成高质量的条形码控件Barcode Professional SDK
- 驱动开发之 虚拟地址空间
- 发帖就各一块一个
- java SWT 开发,递归生成Tree
- 输入法之语料选择