I want to create spring boot web application.
I have two static html files: one.html, two.html.
I want to map them as follows
localhost:8080/one
localhost:8080/two
without using template engines (Thymeleaf).
How to do that? I have tried many ways to do that, but I have 404 error or 500 error (Circular view path [one.html]: would dispatch back to the current handler URL).
OneController.java is:
@Controller
public class OneController {
@RequestMapping("/one")
public String one() {
return "static/one.html";
}
}
Project structure is