Spring Boot: spring-cloud-starter-openfeign library is not working
- Dominant language
- Kotlin
- Stars
- 1.2k
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Description
Just adding the `spring-cloud-starter-openfeign` dependency breaks the Spring Boot application after deploying it to AWS.
Error log:
```
Error creating bean with name 'userRepository' defined in io.test.package defined in @EnableJpaRepositories declared on MainApplication: Cannot create inner bean '(inner bean)#710726a3' of type
[org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#710726a3':
Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument;
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'entityManagerFactory' available
```
Contributor guide
No contributing guide indexed for this repository
Research direction
No file or test is identified. Start by reproducing the AWS deployment with the spring-cloud-starter-openfeign dependency and trace the startup log from userRepository to the missing entityManagerFactory; done means the application deploys without the bean-creation failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, spring-boot
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100