Sunday, 22 May 2016

The prefix "mvc" for element "mvc:annotation-driven" is not bound.


<mvc:annotation-driven content-negotiation-manager="contentNegotiationManager" />
Error: The prefix "mvc" for element "mvc:annotation-driven" is not bound.

Due to missing of annotation: 
xmlns:mvc="http://www.springframework.org/schema/mvc"


<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/mvc"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:beans="http://www.springframework.org/schema/beans"
      xmlns:mvc="http://www.springframework.org/schema/mvc"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="http://www.springframework.org/schema/mvc
      http://www.springframework.org/schema/mvc/spring-mvc.xsd
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/context
        http://www.springframework.org/schema/context/spring-context.xsd
        http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...