#SSH#报tx:annotation-driven is not bound错误

只添加如下代码时,IDEA报错tx:annotation-driven is not bound



applicationContext.xml中必须引入aop和tx相应xmlns和xsi

xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
        http://www.springframework.org/schema/tx
        http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
        http://www.springframework.org/schema/aop
        http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
"

IDEA下SSH框架的applicationContext.xml文件头部部分完整如下:


你可能感兴趣的:(#SSH#报tx:annotation-driven is not bound错误)