You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parameter 0 of constructor in org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration required a single bean, but 2 were found:
- bookDataSource: defined by method 'bookDataSource' in class path resource [li/koly/BookDbConfiguration.class]
- userDataSource: defined by method 'userDataSource' in class path resource [li/koly/UserDbConfiguration.class]
When Spring use auto configuration, it needs to configure the HibernateJpaAutoConfiguration, which needs a single bean of DataSource. How you solve this problem?
The text was updated successfully, but these errors were encountered:
When Spring use auto configuration, it needs to configure the HibernateJpaAutoConfiguration, which needs a single bean of DataSource. How you solve this problem?
The text was updated successfully, but these errors were encountered: