title: Spring not recognising some @Configuration and @Component classes
body: <p>I have - or rather had - a working Spring application, running within IntelliJ. It contains several classes annotated with <code>@Configuration</code>, and several <code>@Component</code> beans. At some point, the following happened:</p>
  
  <ol>
  <li><p>Intelli started showing errors in the code editor stating "<em>Could not autowire. No bean of 'xxx' type  found</em>". But there are such beans which are annotated with <code>@Component</code>.</p></li>
  <li><p>Breakpoints in the constructor of specific <code>@Component</code> beans are not reached. But that is not true for all <code>@Component</code> beans.</p></li>
  <li><p>When running in debug mode, breakpoints in certain <code>@Configuration</code> files are not reached, even though the debugger was stopping there before. The application will fail if it is autowired with one of these <code>@Component</code> beans. </p></li>
  <li><p>The application starts without errors, but obviously without several beans configured in <code>@Configuration</code> classes being called.</p></li>
  </ol>
  
  <p>The class which contains the main method which runs the Spring Boot application is annotated with <code>@SpringBootApplication</code>. <code>@Component</code> classes which live in the same package as this class are recognised and can be autowired, even into classes in other packages.</p>
  
  <p>I am not aware of anything in the code or project which would have changed.</p>
  
  <p>Under <strong>File -> Project Settings -> Modules</strong>, under <strong>Spring Application Context</strong> have now selected all <code>@Configuration</code> files. However this makes no difference.</p>
  
  <p>Have also tried <strong>Build -> Rebuild Project</strong>.</p>
  
  <p>The packages in which the classes reside have not changed. Has anyone seen anything like this before? </p>
  
  <p>Thanks</p>