Tag Archives: mvc view-controller

The prefix “mvc” for element “mvc:view-controller” is not bound

In the Spring configuration file, the DispatcherServlet-servlet.xml configuration is as follows.

<!-- Configuring the interface for direct forwarding ->
    <! -- can respond directly to forwarded pages without having to go through Handler's methods. -->
    <mvc:view-controller path="/success" view-name="success" />

The following error usually occurs at this time:

The solution

xmlns:mvc="http://www.springframework.org/schema/mvc"

xsi:schemaLocation="
    http://www.springframework.org/schema/mvc
    http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd"