title: How to configure DispatcherServlet in a Spring Boot application?
body: <p>In a traditional Spring Web app, it's possible to override <code>AbstractDispatcherServletInitializer.createDispatcherServlet</code>, call <code>super.createDispatcherServlet</code> and then set the following init parameters on the returned instance?</p>
  
  <pre><code>setThreadContextInheritable
  setThrowExceptionIfNoHandlerFound
  </code></pre>
  
  <p>How do I achieve this in a Spring Boot app?</p>