I\'m starting an embedded tomcat via spring-boot and want to serve a static index.html page as part of a running application.
But the follo
You can use ModelAndView in order to serve static HTML content in spring boot.
@RequestMapping("/")
public ModelAndView home()
{
ModelAndView modelAndView = new ModelAndView();
modelAndView.setViewName("index");
return modelAndView;
}
application.properties:-
spring.mvc.view.suffix = .html
HTML File : - src/main/resources/static/index.html