1. 程式人生 > >Type cvc-complex-type.2.4.c: The matching wildcard is strict...

Type cvc-complex-type.2.4.c: The matching wildcard is strict...

nco odin context blog ring color 報錯 log 記錄

這個問題困擾了我兩次,分別說一下原因:
1. 如網上一些網友所言,是在配置Spring的標簽庫的時候有拼寫錯誤或者遺漏。下面貼一個標準3.0的吧:

 1 <?xml version="1.0" encoding="UTF-8"?>
 2 <beans xmlns="http://www.springframework.org/schema/beans"
 3     xmlns:context="http://www.springframework.org/schema/context"
 4     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop" 5 xmlns:tx="http://www.springframework.org/schema/tx" 6 xsi:schemaLocation=" 7 http://www.springframework.org/schema/beans 8 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 9 http://www.springframework.org/schema/context 10 http://www.springframework.org/schema/context/spring-context-2.5.xsd
11 http://www.springframework.org/schema/tx 12 http://www.springframework.org/schema/tx/spring-tx-3.0.xsd 13 http://www.springframework.org/schema/aop 14 http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">

2. 第二次也報這個錯誤,追究了一下原因,是Lib缺少某些包,在對標簽解析的時候報錯。這個在網上說的比較少,記錄一下。供大家參考吧!

3.解決錯誤就是把版本號修改下,對應你使用的語法版本就不報錯了

參考地址:http://blog.sina.com.cn/s/blog_5742944d0100iopa.html

Type cvc-complex-type.2.4.c: The matching wildcard is strict...