ModelAndView的方法addObject

SpringMVC: ModelAndView的addObject方法

addObject(String attributeName,Object attributeValue)

该方法相当于request.setAttribute,在页面上直接使用${attributeName}取值

猜你喜欢

转载自blog.csdn.net/weixin_42594143/article/details/112499288