ssm-异常:The prefix "aop" for element "aop:config" is not bound.

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ssm-异常:The prefix "aop" for element "aop:config" is not bound.相关的知识,希望对你有一定的参考价值。

今天在搭建ssm环境时出现异常:The prefix "aop" for element "aop:config" is not bound.

原因:applicationContext.xml文件头没有添加

xmlns:aop="http://www.springframework.org/schema/aop"

xsi:schemaLocation="http://www.springframework.org/schema/aop

           http://www.springframework.org/schema/aop/spring-aop-3.1.xsd"

作用:

(1)指定标签名

(2)指定命名空间

(3)指定.xsd文件【xml文件格式】

以上是关于ssm-异常:The prefix "aop" for element "aop:config" is not bound.的主要内容,如果未能解决你的问题,请参考以下文章

ssm框架下 数据库连接异常 java.sql.SQLException: The server time zone value '???ú±&

Spring配置文件标签报错:The prefix "XXX" for element "XXX:XXX" is not bound. .

The prefix "p" for attribute "p:message" associated with an element type "b

[CF1204E]Natasha,Sasha and the Prefix Sums 题解

Visual studio 2013打开报异常"Exception has been thrown by the target of an invocation"

解决升级android studio 3.2.1后 "No toolchains found in the NDK toolchains folder for ABI with prefix