cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'aop:config'.
网上找了很久不是说没有引入文件就是说缺少aop支持包,但是我一遍一遍确认,一遍一遍的确认,都有.
有人甚至说版本原因
但是若干天后找到原因
<?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:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop/
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd ">
fuck . http://www.springframework.org/schema/aop/
就是多了一个/
然后还有一个问题http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
需要3.0