JetBrains / kotless

Kotlin Serverless Framework
Apache License 2.0
1.15k stars 57 forks source link

Spring Boot: spring-cloud-starter-openfeign library is not working #75

Open matthewbartos opened 3 years ago

matthewbartos commented 3 years ago

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
matthewbartos commented 3 years ago

Kotless version: 0.1.7-beta-4 🙂