Type cvc-complex-type.2.4.c: The matching wildcard is strict...
2017-12-25 13:25
363 查看
这个问题困扰了我两次,分别说一下原因:
1. 如网上一些网友所言,是在配置Spring的标签库的时候有拼写错误或者遗漏。下面贴一个标准3.0的吧:
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">[/code]
2. 第二次也报这个错误,追究了一下原因,是Lib缺少某些包,在对标签解析的时候报错。这个在网上说的比较少,记录一下。供大家参考吧!
3.解决错误就是把版本号修改下,对应你使用的语法版本就不报错了
参考地址:http://blog.sina.com.cn/s/blog_5742944d0100iopa.html
相关文章推荐
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration的解决
- myeclipse中xml读取xsd失败----- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaratio
- 项目在引入Dubbo之后,XML文件报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can
- Spring cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration
- 关于dubbo创建服务和引用服务时,会报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration...
- 异常 2 problemscvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be foun
- Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict,
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for elem
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- spring - cvc-complex-type.2.4.c: The matching wildcard is strict,
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- eclipse报错cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration...
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element