exception:No unique bean of type [com.eBrowse.service.NewsTabService] is defined: expected single matching bean but found 2: [newsTabService, NewsTabService]
原因 : 在spring的配置文件中applicationContext_cbq.xml,和applicationContext_chz.xml都定义了NewsTabService类,虽然id 一个小写,一个大写。
本文解决了一个关于Spring框架中配置重复的问题,具体表现为两个XML配置文件中定义了相同类型的Bean导致系统无法唯一确定使用哪一个。文章详细分析了问题的原因,并提出了有效的解决方案。
3104

被折叠的 条评论
为什么被折叠?



