How to return a html page from a restful controller in spring boot?
<p>I want to return a simple html page from controller, but I get only the name of the file not its content. Why?</p>

<p>This is my controller code:</p>

<pre><code>@RestController
public class HomeController {

    @RequestMapping("/")
    public String welcome() {
        return "login";
    }
}
</code></pre>

<p>This is my project structure:</p>

<p>[<img src="https://i.stack.imgur.com/MHaaq.png" alt="enter image description here"></p>