您的位置:首页 > 其它

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

2017-12-25 13:25 363 查看
这个问题困扰了我两次,分别说一下原因:
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐