元素 tx:annotation-driven 的前缀 tx未绑定
2018-03-12 10:57
603 查看
问题所在:配置文件中xmlns和xsi:schemaLocation中tx未配置
解决步骤:
1.在xmlns中添加
xmlns:tx="http://www.springframework.org/schema/tx"配置
2.在xsi:schemaLocation中添加
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
注意:
1.解决步骤2未进行会出现“通配符的匹配很全面, 但无法找到元素 'tx:annotation-driven' 的声明。”的报错
2.步骤2中的“ http://www.springframework.org/schema/tx/spring-tx-2.5.xsd”的“spring-tx-2.5.xsd”可以自主决定
解决步骤:
1.在xmlns中添加
xmlns:tx="http://www.springframework.org/schema/tx"配置
2.在xsi:schemaLocation中添加
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
注意:
1.解决步骤2未进行会出现“通配符的匹配很全面, 但无法找到元素 'tx:annotation-driven' 的声明。”的报错
2.步骤2中的“ http://www.springframework.org/schema/tx/spring-tx-2.5.xsd”的“spring-tx-2.5.xsd”可以自主决定
相关文章推荐
- 元素 "tx:annotation-driven" 的前缀 "tx" 未绑定
- spring配置事务 元素 "tx:annotation-driven" 的前缀 "tx" 未绑定
- spring配置事务 元素 "tx:annotation-driven" 的前缀 "tx" 未绑定
- cache:annotation-driven的前缀 cache 未绑定
- 解决错误:通配符的匹配很全面, 但无法找到元素 'tx:annotation-driven'
- "通配符的匹配很全面, 但无法找到元素 'tx:annotation-driven' 的声明" 的解决方案
- cache:annotation-driven" 4000 的前缀 "cache" 未绑定
- Spring_元素 "context:annotation-config" 的前缀 "context" 未绑定
- SpringMVC项目中配置xml时一些和命名空间相关的问题,如mvc:annotation-driven的前缀 "mvc"未绑定
- 关于Spring事务<tx:annotation-driven/>的理解(Controller可以使用@Transactional)
- spring配置出现前缀 "tx" 未绑定、前缀 "mvc" 未绑定等情况
- 关于Spring事务<tx:annotation-driven/>的理解。
- tx:advice tx:annotation-driven 可以共用吗
- <tx :annotation-driven> <mvc: annotation-driven >注解理解
- spring 加入<tx:annotation-driven>标签 起动TOMCAT报错
- 解决 spring mvc 3.0 结合 hibernate3.2 使用<tx:annotation-driven>声明式事务无法提交的问题
- 解决 spring mvc 3.0 结合 hibernate3.2 使用<tx:annotation-driven>声明式事务无法提交的问题(转载)
- 解决 spring mvc 3.0 结合 hibernate3.2 使用<tx:annotation-driven>声明式事务无法提交的问题
- spring mvc中设置登录拦截器,报错:元素 "mvc:interceptors" 的前缀 "mvc" 未绑定。
- spring 事务 @Transactional注解参数 tx:annotation-driven