title: spring boot redirect to html page
body: <p>This is a controller of springboot, I want to write a function to redirect to an html page, but it always responded with 404, and here is the code and properties.
  '</p>
  
  <pre><code>@Component
  
  @Controller
  
  @RequestMapping("/Weixin")
  
  public class KindlePocketController {
  
  private static final long serialVersionUID = 1L;
  
  @Autowired
  private TextBookInfoSearchService searchService;
  
  @RequestMapping("/homepage")
  public String toIndex() {
      System.out.println("redirecting to homepage...");
      return "index";
  }
  }
  </code></pre>
  
  <p>'
  application.properties
  '</p>
  
  <pre><code>spring.view.prefix=/WEB-INF/views/
  
  spring.view.suffix=.html
  </code></pre>
  
  <p>'</p>
  
  <p>the program can get into the function and output is ok. And index.html is in this path:/WEB-INF/views/index.html. Is there any else configurations ?
  Thanks a lot</p>