Use precise mapping annotation, i.e. '@GetMapping', '@PostMapping', etc
Replace @RequestMapping with specific @GetMapping, @PostMapping etc. I’m trying to show the jsp page in the browser. So I used @RequestMapping. But it shows warning like Use precise mapping annotation, i.e. ‘@GetMapping’, ‘@PostMapping’, etc. public class LocationControler { @RequestMapping("/showCreate") public String showCreate() { return "CreateLocation"; } } CreateLocation will display the jsp file CreateLocation.jsp. In… Read More Use precise mapping annotation, i.e. '@GetMapping', '@PostMapping', etc