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
Just adding the
spring-cloud-starter-openfeign
dependency breaks the Spring Boot application after deploying it to AWS.Error log: