Spring AOP 报错

 

1.  org.springframework.test.context.support.AbstractTestContextBootstrapper getDefaultTestExecutionListenerClassNames

     Caught exception while allowing TestExecutionListener

    Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in XML document from class path resource [beans-cfg.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 54; cvc-complex-type.2.4.c: 通配符的匹配很全面, 但无法找到元素 'context:component-scan' 的声明。

    java.lang.IllegalStateException: Failed to load ApplicationContext

 

 

 解决:看到context就立马觉得是配置文件的问题。配置文件代码文字没错,就重新配置了一遍context,就好了

 

posted @ 2022-05-22 18:31  OYそ  阅读(333)  评论(0编辑  收藏  举报