开发者社区> 问答> 正文

Spring+hibernate开发使用tx:annotation问题

screenshot
Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 49 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'tx:annotation-driven'.

Springle配置

screenshot

展开
收起
a123456678 2016-03-16 15:14:31 2358 0
1 条回答
写回答
取消 提交回答
  • 出现这个问题的原因是eclipse的XML Validator没有找到对应的XML Scheme,可以去eclipse的XML Schem配置中看看,正常情况下机器联网会自动下载Scheme,如果无法联网,可以手动添加。当然只要spring-tx.jar存在,程序是不会报错的

    2019-07-17 19:04:00
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
云栖社区特邀专家徐雷Java Spring Boot开发实战系列课程(第20讲):经典面试题与阿里等名企内部招聘求职面试技巧 立即下载
微服务架构模式与原理Spring Cloud开发实战 立即下载
阿里特邀专家徐雷Java Spring Boot开发实战系列课程(第18讲):制作Java Docker镜像与推送到DockerHub和阿里云Docker仓库 立即下载

相关实验场景

更多