配置spring.xml文件时tx标签报错

来源:互联网 发布:niji日本网络电视直播 编辑:程序博客网 时间:2024/06/04 18:10


错误信息: he prefix "tx" for element "tx:annotation-driven" is not bound.

修改方法:在头文件中添加:
    xmlns:tx="http://www.springframework.org/schema/tx"



报错信息:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'tx:annotation-driven'.

修改方法:在头文件的xsi:schemaLocation中添加:

  http://www.springframework.org/schema/txhttp://www.springframework.org/schema/tx/spring-tx.xsd

0 0