title: "NoSuchMethodError getHttpServletMapping" after springboot upgrade
body: <p>I upgraded from springboot 2.1.3 to 2.2.0. So far things works fine but I noticed when I make a rest request that returns a 400, instead of getting the json response I get the error:</p>
  
  <pre><code>[Tomcat].[localhost]           : Exception Processing ErrorPage[errorCode=0, location=/error]
  java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getHttpServletMapping()Ljavax/servlet/http/HttpServletMapping;
  </code></pre>
  
  <p>The funny thing is I get this <strong>only</strong> when I start the app from Intellij using an emdedded tomcat. (create a mvn profile with "spring-boot:run")</p>
  
  <p>So,</p>
  
  <ul>
  <li>With standalone tomcat, it works fine everywhere</li>
  <li>With embedded tomcat, and only if I start from Intellij I get this error.</li>
  </ul>
  
  <p>But I can do the same thing from command line with </p>
  
  <blockquote>
    <p>mvn spring-boot:run</p>
  </blockquote>
  
  <p>which then I have no error ?! As suggested on another post I upgraded my IntelliJ to latest version but didn't help</p>