Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 16 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 16; columnNumber: 14; 元素 “aop:config” 的前缀 “aop” 未绑定。
错误位置:核心配置文件的约束配置错误,若用的是Aop开发,则需要Aop的约束,先导jar包,再配置。
图1错误的:

改正后图2:

博客指出在Spring的XML配置中,核心配置文件出现元素前缀未绑定的错误,具体为元素 “aop:config” 的前缀 “aop” 未绑定。错误原因是约束配置有误,若使用Aop开发,需添加Aop约束,先导入jar包再进行配置。
1万+

被折叠的 条评论
为什么被折叠?



