spring配置報錯

2021-06-28 12:33:25 字數 470 閱讀 4139

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"?>

xmlns:xsi=""

xmlns:aop=""

xsi:schemalocation="

/spring-beans-2.0.xsd

//spring-aop-3.0.xsd ">

**** .   / 

就是多了乙個/

然後還有乙個問題/spring-beans-2.0.xsd

需要3.0

Spring配置檔案報錯

multiple annotations found at this line cvc elt.1 cannot find the declaration of element beans schema reference.4 failed to read schema document becau...

spring報錯context不可識別

error message the prefix context for element context component scan is not bound.solution xmlns xsi xmlns context xmlns aop xsi schemalocation spring ...

配置springmvc報錯

配置springmvc資源對映時,報錯 multiple annotations found at this line schema reference.4 failed to read schema document because 1 could not find the document 2 ...