Formatted the code
This commit is contained in:
parent
c884ab0f30
commit
991b9629a0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue