org.springframework.web.servlet.ModelAndView.getModelInternal()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(152)

本文整理了Java中org.springframework.web.servlet.ModelAndView.getModelInternal()方法的一些代码示例,展示了ModelAndView.getModelInternal()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ModelAndView.getModelInternal()方法的具体详情如下:
包路径:org.springframework.web.servlet.ModelAndView
类名称:ModelAndView
方法名:getModelInternal

ModelAndView.getModelInternal介绍

[英]Return the model map. May return null. Called by DispatcherServlet for evaluation of the model.
[中]返回模型地图。可能返回null。由DispatcherServlet调用以评估模型。

代码示例

代码示例来源:origin: spring-projects/spring-framework

if (viewName != null) {
  view = resolveViewName(viewName, mv.getModelInternal(), locale, request);
  if (view == null) {
    throw new ServletException("Could not resolve view with name '" + mv.getViewName() +
    response.setStatus(mv.getStatus().value());
  view.render(mv.getModelInternal(), request, response);

代码示例来源:origin: org.springframework/spring-webmvc

if (viewName != null) {
  view = resolveViewName(viewName, mv.getModelInternal(), locale, request);
  if (view == null) {
    throw new ServletException("Could not resolve view with name '" + mv.getViewName() +
    response.setStatus(mv.getStatus().value());
  view.render(mv.getModelInternal(), request, response);

代码示例来源:origin: stackoverflow.com

if (mv.isReference()) {
  view = resolveViewName(mv.getViewName(), mv.getModelInternal(), locale, request);
  if (view == null) {
    throw new ServletException("Could not resolve view with name '" + mv.getViewName() +
  view.render(mv.getModelInternal(), request, response);

相关文章