解决<tx:attributes>标红,元素tx:attributes不允许在这里
作者:互联网
初学ssm时,在applicationContext.xml中配置事务增强时,<tx:attributes>标签标红
解决办法:更改bean的引用约束
xmlns:tx="http://www.springframework.org/schema/cache"
改为
xmlns:tx="http://www.springframework.org/schema/tx"
注意这里也要修改:
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx.xsd
改后,问题解决。
标签:www,http,tx,springframework,标红,org,attributes,schema 来源: https://blog.csdn.net/zml_pinkgirl/article/details/122088566