BBOSS框架使用jquery方式传参到后台的时候,要注意的事项

来源:互联网 发布:淘宝居家家怎么那么火 编辑:程序博客网 时间:2024/06/04 18:30

BBOSS框架,从前台传到后台的时候,参数要以这种方式:

 public String initAddOrModExtendUser(HttpServletRequest request,
            @RequestParam (name = "act") String act,HttpServletResponse response,
            ExtendUserDO extendUserDO){}


其中@RequestParam(name = "act") String act,就是参数。


而不能直接用String userName传递参数;

public boolean login(HttpServletRequest request,
            HttpServletResponse response, String userName, String password,                      //错误
            boolean enablelog,String code
) throws AccessException {}                                 //错误

0 0
原创粉丝点击