I have the following Spring @Configuration: @Bean @Qualifier("mongo") public MongoFacade mongo(Environment env){ final String host = env.getProperty("database.host"); final MongoClient mongoClient = new MongoClient(host); return new MongoFacade(mongoClient, "test-db"); } @Bean public MessageStore<Event> eventStore(@Qualifier("mongo") MongoFacade mongo, ObjectMapper mapper) { return new MongoMessageStore<>(mongo, mapper); } When I launch my application an exception is thrown and the cause is: […]
The post Spring can’t autowire class appeared first on BlogoSfera.