title: JavaConfig : The type javax.servlet.ServletContext and javax.servlet.ServletException cannot be resolved
body: <p>create my first project in Spring and I have some problem. 
  I use JavaConfig to configuration my project and when I start I have this error :</p>
  
  <pre><code>Error:(6, 8) java: cannot access javax.servlet.ServletException
  class file for javax.servlet.ServletException not found
  </code></pre>
  
  <p>I now I have to add javax.servlet api but I do not know where to do it.
  I create my project in IntelliJ Ultimate 2017.</p>