intellij incorrectly saying no beans of type found for autowired repository

I had this same issue when creating a Spring Boot application using their @SpringBootApplication annotation. This annotation represents @Configuration, @EnableAutoConfiguration and @ComponentScan according to the spring reference. As expected, the new annotation worked properly and my application ran smoothly but, Intellij kept complaining about unfulfilled @Autowire dependencies. As soon as I changed back to using @Configuration, @EnableAutoConfiguration and @ComponentScan separately, the errors ceased. It seems Intellij 14.0.3 (and most likely, earlier versions too) is not yet … Read more

Meaning of @Resource annotation

First of all, to understand the point of @Resource you need to understand the Inversion of Control (IoC). Inversion of Control is a principle in software development which goes that the control of objects should be transferred to a container or a framework. Dependency Injection (DI) is a pattern of IoC implementation, where the control being inverted is the setting … Read more