@PathVariable 是用来获得请求url中的动态参数的:

 1    @ResponseBody
 2     @RequestMapping(value="/pointUpload/{userid}",method = RequestMethod.POST)
 3     public  Map<String,Object> pointUpload(HttpServletRequest request,HttpServletResponse response,
 4                                            @PathVariable(value="userid") Integer userid){
 5         Map<String,Object> resultMap = new HashMap<String,Object>();
 6         try{
 7 
 8         }catch (Exception e){
 9             e.printStackTrace();
10         }
11         return resultMap;
12     }

 

 

  

相关文章:

  • 2021-05-31
  • 2022-12-23
  • 2021-10-20
  • 2021-07-13
  • 2022-02-01
  • 2021-06-28
猜你喜欢
  • 2021-09-05
  • 2022-12-23
  • 2021-12-05
  • 2021-07-15
  • 2021-10-12
  • 2021-05-13
  • 2022-01-01
相关资源
相似解决方案