开发者社区> 问答> 正文

Seata examples 中添加context:component-scan 失败

jdk1.7 环境win10 eclipse工具 单独跑例子是没有问题的 但是如果添加新的扫描

<context:component-scan base-package="com.">
<context:exclude-filter type="annotation"
expression="org.springframework.stereotype.Controller" />
</context:component-scan>

会报错,是有依赖问题?

Unexpected exception parsing XML document from class path resource [applicationContext-dubbo.xml]; nested exception is java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher

展开
收起
一人吃饱,全家不饿 2021-02-01 23:31:18 792 0
来自:阿里开源
1 条回答
写回答
取消 提交回答
问答地址:
来源圈子
更多
收录在圈子:
+ 订阅
阿里巴巴相信开源的世界里人人贡献代码,人人获得收益,共同创造一个互帮互利的社区,促进技术进步和发展。
问答排行榜
最热
最新

相关电子书

更多
Data-Driven Water Security with Bluemix Apache Spark Service 立即下载
In-Flux Limiting for a Multi-Tenant Logging Service 立即下载
R&D To Product Pipeline Using Apache Spark in Adtech 立即下载