@Controller
public class HomeController {
/**
* Simply selects the home view to render by returning its name.
*/
@RequestMapping(value = "/index", method = RequestMethod.GET)
public String home(Locale locale, Model model)
{
String server_timestamp = new Date().toString();
model.addAttribute("serverTime", server_timestamp);
return "home";
}
}