Formatted the code

This commit is contained in:
dineshmadhwal 2016-11-29 15:02:41 +08:00
parent c884ab0f30
commit 991b9629a0
1 changed files with 6 additions and 8 deletions

View File

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