After adding elasticsearch support, Spring Boot complain BeanCreationException with nested IllegalStateException No association found
问题 I have run into a strange problem. I created a project with Spring Boot 2.0.1 with redis , mongodb and elasticsearch . Before adding elasticsearch, everything runs smoothly, but after I add elasticsearch, Spring Boot starts complaining,but the error looks like not related to elasticsearch, it complains that it could not create userRepo 。 Please get noticed I used lombok's @RequiredArgsConstructor to generate constructor to make injection work, so it should not be @autowired issue, Anyone can