I set servlet mapping
<servlet>
      <servlet-name>Site</servlet-name>
      <servlet-class>com.demo.controller.App</servlet-class>
  </servlet>
    <servlet-mapping>
        <servlet-name>Site</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>there is also an index.jsp in the webapp directory
< hr > so that when I visit  http://localhost:8080/, I will still go index.jsp 
 without triggering the doGet method of my default App controller 
 unless I casually write a directory such as  http://localhost:8080/a/ will trigger 
Why is this?
