No qualifying bean of type error handling

What to do if you get a No qualifying bean of type error.

It has been confirmed that @Component etc. are firmly attached

What you should check here is the structure of the file. In Spring boot, read the classes under it from the class with @ComponentScan or @SpringBootApplication annotation.

In other words, the class with the @Component annotation must be placed in the same package as the class with the @ComponentScan or @SpringBootApplication annotation.

Is that so~

reference

Thank you very much Causes and countermeasures when No qualifying bean of type appears in Spring Boot

Recommended Posts

No qualifying bean of type error handling
[Swift] Perform error handling with Optional <Wrapped> type
No enclosing instance of type Hoge is accessible.
[Swift] Error handling
About No Method Error
Error handling in Graphql-ruby