Open
Description
Description:
Parameter 1 of method entityManagerFactory in com.example.config.multitenant.HibernateConfig required a single bean, but 2 were found:
- dataSourceBasedMultiTenantConnectionProviderImpl: defined in file [D:\ws_tbas-Rdesing\multitenant-db\target\classes\com\example\config\multitenant\database\DataSourceBasedMultiTenantConnectionProviderImpl.class]
- tenantConnectionProvider: defined in file [D:\ws_tbas-Rdesing\multitenant-db\target\classes\com\example\config\multitenant\schema\TenantConnectionProvider.class]
Action:
Consider marking one of the beans as @primary, updating the consumer to accept multiple beans, or using @qualifier to identify the bean that should be consumed
Metadata
Metadata
Assignees
Labels
No labels