---
title: "spring_mvc（六）Rendering Views"
author: "mistbow"
date: "2011-12-06T11:02:11Z"
tags: []
categories: ["编程语言"]
slug: "spring-mvc-rendering-views"
draft: false
lastmod: "2011-12-06T11:59:43Z"
id: 1293549
url: "https://mistbow.iteye.com/blog/1293549"
---

\[color=blue]HTML generated by JSP template\[/color] \[code="java"] @RequestMapping(value="/html", method=RequestMethod.GET) public ModelAndView prepare() { System.out.println("aaa"); ModelAndView mav = new ModelAndView("test\_mvc"); mav.addObject("foo", "bar"); mav.addObject("fruit", "apple"); return mav; } \[/code] \[code="java"] \[/code]