title: Spring boot custom error page for 404
body: <p>i wish to have custom 404 error page .I have velocity in my classpath but I don't want to use velocity view resolver
  Below is my code</p>
  
  <pre><code>@EnableAutoConfiguration(exclude={VelocityAutoConfiguration.class})
  @ComponentScan
  public class Application {
  Properties props = new Properties();
  
  public static void main(String[] args) {
      SpringApplication.run(Application.class, args);
  }
  }
  </code></pre>
  
  <p>i am not able to redirect all the 404 to my some html in resource directory.</p>
  
  <p>Please assist</p>
  
  <p>P.S It work if i am use velocityresolver and have error.vm in template directory.</p>
  
  <p>Thanks ans regards</p>