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



错误信息: 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/tx http://www.springframework.org/schema/tx/spring-tx.xsd

你可能感兴趣的:(配置spring.xml文件时tx标签报错)