id一直是Null

@RequestMapping(value = "/obj", produces = "application/json;charset=UTF-8")//7
    @ResponseBody //8
    public String passObj(DemoObj obj, HttpServletRequest request) {
        
         return "url:" + request.getRequestURL() 
                     + " can access, obj id: " + obj.getId()+" obj name:" + obj.getName();

    }

 

posted @ 2018-02-06 02:11  R4mble  阅读(353)  评论(0编辑  收藏  举报