I have a spring boot app -
I have a controller -
@Controller("CWOController")
@RequestMapping(value = "/cworequest")
public class CWOController {
@RequestMapping(value = {"/index.html"}, method = {RequestMethod.GET})
public String getCwoIdSearchForm(Model model) {
model.addAttribute("cwoRequestForm", new CWORequest());
return "index";
}
This works on the url -> http://localhost:8080/cworequest/
but I need -> http://localhost:8080/cworequest/index.html to map to the above GET.
How do I do that?