Consider defining a bean of type 'service' in your configuration [Spring boot]
A class must have the @Component
annotation or a derivation of that (like @Service
, @Repository
etc.) to be recognized as a Spring bean by the component scanning. So if you add @Component
to the class, it should solve your problem.
Since TopicService
is a Service
class, you should annotate it with @Service
, so that Spring autowires this bean for you. Like so:
@Service
public class TopicServiceImplementation implements TopicService {
...
}
This will solve your problem.