天天看點

“cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'”錯誤的解決辦法

今天寫spring配置檔案的時候出現cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib的錯誤,查資料後發現的指令空間引入的問題

解決方法很簡單

把http://www.springmodules.org/schema/cache/springmodules-cache.xsd複制到頭檔案中的xmlns:xsi裡就行了

如下

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance http://www.springmodules.org/schema/cache/springmodules-cache.xsd"
           
pom

繼續閱讀