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;
}
}