Skip to content

Bean create error #10

Open
Open
@ayasincakmak

Description

@ayasincakmak

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions