skip to Main Content

Return Html page using RestController in Spring Boot

I am trying to get the HTML page that I created. This is the structure of my project: This is the "IndexController" class: @RestController @AllArgsConstructor @RequestMapping(path = "/webpage") public class IndexController { @GetMapping(path = {"mainpage"}) @ResponseBody public String index(){ return…

VIEW QUESTION
Back To Top
Search