Formatted the code

This commit is contained in:
dineshmadhwal 2016-11-29 15:04:54 +08:00
parent 991b9629a0
commit 7868a1ec84
2 changed files with 14 additions and 18 deletions

View File

@ -9,9 +9,7 @@ public class RequestMappingHandlerAdapterExampleController {
@RequestMapping("/requestName") @RequestMapping("/requestName")
public ModelAndView getEmployeeName() { public ModelAndView getEmployeeName() {
ModelAndView model = new ModelAndView("Greeting"); ModelAndView model = new ModelAndView("Greeting");
model.addObject("message", "Madhwal"); model.addObject("message", "Madhwal");
return model; return model;
} }
} }

View File

@ -13,9 +13,7 @@ AbstractController {
protected ModelAndView handleRequestInternal(HttpServletRequest arg0, protected ModelAndView handleRequestInternal(HttpServletRequest arg0,
HttpServletResponse arg1) throws Exception { HttpServletResponse arg1) throws Exception {
ModelAndView model = new ModelAndView("Greeting"); ModelAndView model = new ModelAndView("Greeting");
model.addObject("message", "Dinesh Madhwal"); model.addObject("message", "Dinesh Madhwal");
return model; return model;
} }
} }