Replace @RestController with @Controller. Not doing so will cause Thymeleaf not able to find the required html file.