I've tried the answers related to the question in stackoverflow. It did not work out.
Here is my project structure :
Controller: To render the index.html
@Controller
public class MainController {
@RequestMapping(value="/",method = RequestMethod.GET)
public String homepage(){
System.out.println("Inside controller..");
return "index";
}
}
When i'm trying to hit the URL
, it prints Inside controller..
but not rendering the index
page. Tried using WebMvcConfigurerAdapter
as well.
In browser, it displays some error like Whitelabel Error Page
Am I missing something out here?