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 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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: