title: Spring boot mapping static html
body: <p>I want to create spring boot web application. </p>
  
  <p>I have two static html files: one.html, two.html.</p>
  
  <p>I want to map them as follows</p>
  
  <pre><code>localhost:8080/one
  localhost:8080/two
  </code></pre>
  
  <p>without using template engines (Thymeleaf). </p>
  
  <p>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).</p>
  
  <p>OneController.java is:</p>
  
  <pre><code>@Controller
  public class OneController {
      @RequestMapping("/one")
      public String one() {
          return "static/one.html";
      }
  }
  </code></pre>
  
  <p>Project structure is</p>
  
  <p><a href="https://i.stack.imgur.com/bFLqi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bFLqi.png" alt="enter image description here"></a></p>