Formatted the code

This commit is contained in:
dineshmadhwal 2016-11-29 15:02:41 +08:00
parent c884ab0f30
commit 991b9629a0

View File

@ -6,12 +6,10 @@ import org.springframework.web.servlet.ModelAndView;
@Controller @Controller
public class AnnotationMethodHandlerAdapterExampleController { public class AnnotationMethodHandlerAdapterExampleController {
@RequestMapping("/annotedName") @RequestMapping("/annotedName")
public ModelAndView getEmployeeName() { public ModelAndView getEmployeeName() {
ModelAndView model = new ModelAndView("Greeting"); ModelAndView model = new ModelAndView("Greeting");
model.addObject("message", "Dinesh");
model.addObject("message", "Dinesh"); return model;
}
return model;
}
} }