cvc-complex-type.2.4.c 如何解决
来源:百度知道 编辑:UC知道 时间:2024/06/25 23:22:10
spring的applicationContext.xml中
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.sp
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.sp
下面我来讲解一下,方法很简单
1 eclipse中xsd的验证问题DescriptionResourcePathLocationType cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for
2 spring的applicationContext.xml中的xsd的spring版本要高一点,应该是高于3.0.4就可以
3 同时加载的spring lib文件版本也要高于3.0.4,
xsi:schemaLocation 加上:
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd