Bla*_*man 2 java spring spring-mvc
如果我有一个像modelandView:
ModelAndView mav = new ModelAndView();
mav.setViewName("index");
mav.addObject("message", "hello, world");
return mav;
Run Code Online (Sandbox Code Playgroud)
在index.jsp中,如何输出"message"的值?
如果我通过了怎么办:
mav.addObject("user", currentUser);
Run Code Online (Sandbox Code Playgroud)
似乎文档直接进入表单处理.
| 归档时间: |
|
| 查看次数: |
1596 次 |
| 最近记录: |