Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Controller
- @RequestMapping("/welcome.htm")
- public class Welcome {
- public Date getCurrentDate(){
- return new Date();
- }
- @RequestMapping(method = RequestMethod.GET)
- public String showUserForm(ModelMap model) {
- model.addAttribute("action", this);
- return "welcome";
- }
- }
Add Comment
Please, Sign In to add comment