Nutz Version : 1.r.60
Java Version : 1.7.0_67
ServerInfo : Apache Tomcat/7.0.59
Servlet API : 3.0
通过@Param("clazzId")Long clazzId这种方式获取到的参数为空,是不是pom文件配置错了?
url,小程序navigateTo跳转的。
var clazzId = e.currentTarget.dataset.clazzid;
wx.navigateTo({
url: '../courseDetails/courseDetails?clazzId=' + clazzId
})
取不到,前端是确认穿了clazzId的
@At
@Ok("raw:json")
public Object toClazzDetails(HttpSession session, HttpServletRequest request,
@Param("::")Pager pager, @Param("clazzId")Long clazzId){
JSONObject json = new JSONObject();
System.out.println("-----------------req->clazzId:" + request.getParameter("clazzId"));
System.out.println("--------------------->clazzId:" + clazzId);
System.out.println("--------------------->pager:" + pager);
clazzId = 1L;
Clazz clazz = clazzService.fetch(clazzId);
if(clazz == null){
}
return json.toString();
}