在配置applicationContext.xml时,报错提示找不到aop:config的声明,首先检查头部的beans 配置,发现xsi:schemaLocation这里有问题:
应该把 http://www.springframework.org/schema/beans/spring-aop.xsd
改为 http://www.springframework.org/schema/aop/spring-aop.xsd
【Spring】Spring AOP报错:通配符的匹配很全面, 但无法找到元素 ‘aop:config‘ 的声明
最新推荐文章于 2024-07-25 11:59:12 发布
关键词由CSDN通过智能技术生成