是否可以在 mvc controller方法中传入两个实体类参数。改怎么传?
@ResponseBodypublicResultFlagaddEmployee(HttpServletRequestrequest,HttpSessionsession...
@ResponseBody
public ResultFlag addEmployee(HttpServletRequest request, HttpSession session, @Valid HrEmployee Employee,
@Valid PtUser user, BindingResult result) {
…………
} 展开
public ResultFlag addEmployee(HttpServletRequest request, HttpSession session, @Valid HrEmployee Employee,
@Valid PtUser user, BindingResult result) {
…………
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询