title: Welcome-file with Request path is not working with latest Spring
body: <p>this is simple spring application with below codes.</p>
  <ol>
  <li>web.xml</li>
  </ol>
  <pre><code>&lt;web-app xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
      xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot; xmlns:web=&quot;http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;
      xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd&quot;
      id=&quot;WebApp_ID&quot; version=&quot;3.0&quot;&gt;
      
  
      &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;Main/index.do&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.do&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  <ol start="2">
  <li>dispatcher-servlet.xml</li>
  </ol>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
      xmlns:context=&quot;http://www.springframework.org/schema/context&quot;
      xmlns:mvc=&quot;http://www.springframework.org/schema/mvc&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
      xsi:schemaLocation=&quot;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
      http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd&quot;&gt;
  
      &lt;context:component-scan base-package=&quot;com.infotech.controller&quot;&gt;&lt;/context:component-scan&gt;
      &lt;bean
          class=&quot;org.springframework.web.servlet.view.InternalResourceViewResolver&quot;&gt;
          &lt;property name=&quot;prefix&quot;&gt;
              &lt;value&gt;/WEB-INF/views/&lt;/value&gt;
          &lt;/property&gt;
  
          &lt;property name=&quot;suffix&quot;&gt;
              &lt;value&gt;.jsp&lt;/value&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>
  <ol start="3">
  <li>mycontroller class</li>
  </ol>
  <pre><code>package com.infotech.controller;
  import org.springframework.core.SpringVersion;
  import org.springframework.stereotype.Controller;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.ResponseBody;
  
  @Controller
  @RequestMapping(&quot;Main&quot;)
  public class myController {
  
      @ResponseBody
      @RequestMapping(&quot;/index.do&quot;)
      public String mytest() {
          return &quot;from mycontroller with welcome file as Main/index.do =&quot; + SpringVersion.getVersion();
      }
  }
  </code></pre>
  <p>The above code is working fine with spring-4.3.29 able to get response from controller, but the same is not working with spring-5.3.16,  it showing 404..</p>