我正试图在我的Spring项目中添加两个数据源,但是,我得到了这个错误
org.springframework.beans.factory.BeanCreationException: Error creating: No qualifying bean of type [javax.persistence.EntityManagerFactory] is defined: expected single matchingof type [javax.persistence.EntityManagerFactory] is defined: expected
现在当我试图EmailManager emailManager
从我的UserController中,我得到了一个错误,即不能创建bean。nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying beannested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No