My Spring project doesn't load with index.html as welcome file but if I rename it to index.jsp
then it works fine. Why?
My web.xml
<servlet>
<servlet-name>springmvc</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>springmvc</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
If I changes index.html to index.jsp, page seems to be loading.
I have seen other question like this but with no correct answers. SO question