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 {} //错误