That’s weird! Suddenly, you try to inject a dependency in your Spring Boot application, but it’s like
@Autowired stopped working.
You will see this in several ways. IntelliJ will provide a warning from the Spring plugin, which says “Could not autowire. No beans of ‘YourBeanName’ type found.”
At runtime, Spring itself will fail with a message like:
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.scottshipp.www.YourBeanName' available: expected at least 1 bean which qualifies as autowire candidate.