錯誤描述:
使用mvc標簽顯示不能識別
<mvc:annotation-driven conversion-service="ConversionService"/>
報錯:
he matching wildcard is strict,but not declaration can be found for element 'mvc:annotation-driven’
錯誤原因:
問題是不能識別"mvc:annotation-driven/"這個標簽,肯定是xml約束檔案引入的問題,修改引入的xml約束,添加約束:
xmlns:mvc="http://www.springframework.org/schema/mvc"
springmvc.xml頭模板
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
? xmlns:context="http://www.springframework.org/schema/context"
? xmlns:mvc="http://www.springframework.org/schema/mvc"
? xsi:schemaLocation="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 http://www.springframework.org/schema/mvc/spring-mvc.xsd">
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/176405.html
標籤:其他
上一篇:0基礎童鞋快速開始學習前端開發
下一篇:網站建設程序中需要注意哪些問題?
