Delete RequestMappingHandlerAdapterExampleController.java
This commit is contained in:
parent
408af40b48
commit
aabc39ccfa
@ -1,17 +0,0 @@
|
|||||||
package com.baeldung.spring.controller;
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.servlet.ModelAndView;
|
|
||||||
|
|
||||||
@Controller
|
|
||||||
public class RequestMappingHandlerAdapterExampleController {
|
|
||||||
@RequestMapping("/requestName")
|
|
||||||
public ModelAndView getEmployeeName() {
|
|
||||||
ModelAndView model = new ModelAndView("Greeting");
|
|
||||||
|
|
||||||
model.addObject("message", "Madhwal");
|
|
||||||
|
|
||||||
return model;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user