http status 404 is thrown while accessing the url localhost:8080/todolistapp/index.html
2014-11-08 01:09:58 WARN PageNotFound:1114 - No mapping found for HTTP request with URI [/todolistapp/index.html] in DispatcherServlet with name 'mvc-dispatcher'
This is my web.xml
<servlet>
<servlet-name>mvc-dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>mvc-dispatcher</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
A Spring REST application, which has html files, accessing to REST API in the same project
@Controller
@RequestMapping("/todo")
public class TaskController {
.................
}
I can access the url like
http://localhost:8080/todolistapp/todo/list
http://localhost:8080/todolistapp/todo/delete/2
but when i try to access the index.html
it throws the error
WARN PageNotFound:1114 - No mapping found for HTTP request with URI [/todolistapp/index.html] in DispatcherServlet with name 'mvc-dispatcher'
This is my Project Layout