关于spring2.5出现doesn't recognize same beans when included multiple times on classpath的问题

意思是说在不同的package中含有相同的类,而这些类被context:component-scan管理进来了

当进行注入的时候spring无法识别要注入那个类了,

解决办法是不同的包下面的类也不要用相同的名字(如果这些类要用context:component-scan标签加载的话),或者等待spring的更新吧

你可能感兴趣的:(关于spring2.5出现doesn't recognize same beans when included multiple times on classpath的问题)