您的位置:首页 > 其它

The prefix "tx" for element "tx:annotation-driven" is not bound. ssm配置事物切面报错

2017-09-19 19:35 585 查看
今天在配置ssm的时候,配置切面时,xml报错,The prefix "tx" for element "tx:annotation-driven" is not bound.  后来找了一下,发现没有引入schema,在头部加入就好,
具体附上图

错误图片

解决图片

需要引入的:

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

    xmlns:tx="http://www.springframework.org/schema/tx"
http://www.springframework.org/schema/tx  
        http://www.springframework.org/schema/tx/spring-tx-4.1.xsd  
        http://www.springframework.org/schema/aop 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐