I have an application that has 2 beans with the same name, but which are in different packages. The Spring application crashes because it cannot decide which bean to execute. Is there a solution for this? beans does not currently implement specific interfaces.
The following is an edited example of an exception:
Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'dataTransferHandler' for bean class [aaaaa.ws.handler.DataTransferHandler] conflicts with existing, non-compatible bean definition of same name and class [bbbbb.ws.handler.DataTransferHandler]
Marco source share