报错信息:
场景:
在spring集成mybatis中出现,主要是配置文件中添加如下配置引发:
<tx:annotation-driven transaction-manager="transactionManager" />
原因:
在spring配置文件没有引入相应的名称空间.
本例在原有配置再添加如下:
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd"
以上,TKS.