Add JSTL to JSP sample

This commit is contained in:
Dave Syer
2013-11-26 08:15:40 +00:00
parent f4f668a52b
commit 3f1cfbf241
5 changed files with 26 additions and 12 deletions

View File

@@ -1,5 +1,8 @@
package org.springframework.boot.sample.jsp;
import java.util.Date;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -7,7 +10,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
public class WelcomeController {
@RequestMapping("/")
public String welcome() {
public String welcome(Map<String,Object> model) {
model.put("time", new Date());
return "welcome";
}