Hello All,
I am developing an add-on for Jira Cloud using Atlassian connect spring boot and for the database, I am using dynamoDB.
While deploying this I am getting following error:
expected single matching bean but found 2: dynamoAtlassianHostRepository,atlassianHostRepository
So here it is creating 2 beans and due to that I am getting:
***************************
APPLICATION FAILED TO START
***************************
Description:
atlassian-connect-spring-boot requires a bean of type 'com.atlassian.connect.spring.AtlassianHostRepository' that could not be found. This repository is used for storing installation data.
Action:
Choose a Spring Data implementation to use with AtlassianHostRepository, and enable Repository scanning with the appropriate @Enable${store}Repositories annotation. If you choose Spring Data JPA, consider using atlassian-connect-spring-boot-jpa-starter.
I have added
@EnableDynamoDBRepositories("jira.cloud.plugin.dynamo")
This package contains one class which implements AtlassianHostRepository.
Other than this I have used SelfAuthenticationTokenGenerator and AtlassianHostRestClients using Autowire.
How can I resolve this issue?
Hi @Hardik Shingala ,
did you manage to find a solution?
I'm facing the same problem at the moment.
Thanks,
Artem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.