1、异常提示:
DEBUG o.s.w.s.m.m.a.ServletInvocableHandlerMethod - Error resolving argument [2] [type=java.lang.Integer]
HandlerMethod details:
Controller [com.artup.activity.web.ActivityWorksController]
Method [public java.lang.String com.artup.activity.web.ActivityWorksController.worksGreat(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.Integer)]
org.springframework.web.bind.MissingServletRequestParameterException: Required Integer parameter 'worksId' is not present
2、原因:worksId 未传值;
3、客户端增加 worksId 的传递即可。